Page 1 of 1

PanelGadget() and ClosePanelGadget()

Posted: Tue May 06, 2003 1:21 pm
by Denis
Hi All,

i use 5 PanelGadget() to set Toolbar (Danilo lib)
I write the following code (wich is running Ok) and i close each time the PanelGadget before to create another one. I try the same code with only one ClosePanelGadget() (the last one) and it's Ok under Win98 SE.

I wonder if i have to write ClosePanelGadget() each time or only once to have stable code. I remember A Berikco's post about ClosePanelGadget() but i didn't find it anymore on the new forum.

Code: Select all

  PanelToolBarID1=PanelGadget(#PanelGadgetToolBar1, #PosXoriginePanel1, #PosYPanel,#widthTB1 , 30)
  ClosePanelGadget()
  PanelToolBarID2=PanelGadget(#PanelGadgetToolBar2,#widthTB2 , #PosYPanel, 31*2, 30)
  ClosePanelGadget()
  PanelToolBarID3=PanelGadget(#PanelGadgetToolBar3,#widthTB3 , #PosYPanel, 31*5, 30)
  ClosePanelGadget()
  PanelToolBarID4=PanelGadget(#PanelGadgetToolBar4,#widthTB4 , #PosYPanel, 31*3, 30)
  ClosePanelGadget() 
  PanelToolBarID5=PanelGadget(#PanelGadgetToolBar5,#widthTB5 , #PosYPanel, 31, 30)
  ClosePanelGadget()

Denis

Posted: Tue May 06, 2003 10:37 pm
by Fred
You must have all the CloseGadget(), one for each PanelGadget.

Posted: Wed May 07, 2003 12:37 pm
by Denis
Thanks Fred.


Denis