Author Topic: Multy-tab on the PalletSet.  (Read 3042 times)

0 Members and 1 Guest are viewing this topic.

gilseorin

  • Guest
Multy-tab on the PalletSet.
« on: April 08, 2007, 07:56:46 AM »
Hi,all.
I tried to create multy-tab on my PalletSet, but couldn't find the way.
Is it impossible? Only PaletteSetStyles.ShowTabForSingle is the all?

Code: [Select]
public void Initialize()

{
 if (ps == null) {
   ps = new Autodesk.AutoCAD.Windows.PaletteSet("GilSeoRin");
   Modelessform myForm = new Modelessform();
   ps.Add("GilSeoRin", myForm);
   ps.Style = (Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowAutoHideButton +
               Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowTabForSingle);
   ps.MinimumSize = new System.Drawing.Size(300, 300);
   ps.Visible = true;
 }
}
« Last Edit: April 08, 2007, 08:09:03 AM by gilseorin »

gilseorin

  • Guest
Re: Multy-tab on the PalletSet.
« Reply #1 on: April 08, 2007, 09:05:48 PM »
Finally I found the way.
ps.Add("GilSeoRin", myForm);
ps.Add("YourPallet", yourForm);

Thanks,anyway.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Multy-tab on the PalletSet.
« Reply #2 on: April 08, 2007, 09:06:09 PM »
I missed the original post,
.. but It wasn't too difficult, was it ?
« Last Edit: April 08, 2007, 09:57:25 PM by Kerry Brown »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

gilseorin

  • Guest
Re: Multy-tab on the PalletSet.
« Reply #3 on: April 08, 2007, 10:07:31 PM »
Yes, it was very very difficult.
It took several months to solve.
But compare with ObjectArx programming, It's a piece of cake.

MickD

  • King Gator
  • Posts: 3651
  • (x-in)->[process]->(y-out) ... simples!
Re: Multy-tab on the PalletSet.
« Reply #4 on: April 09, 2007, 06:23:40 PM »
A quick search of the board for "palette" would have made your work a bit easier also, give it a go, there's heaps to look through ;)
« Last Edit: April 09, 2007, 06:25:35 PM by MickD »
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien