I use this code (small piece of my original code) :
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()
If (PanelToolBarID1) And (CreateTB(#ToolBar1,MainWindowID,24,24)) And (PanelToolBarID2) And (CreateTB(#ToolBar2,MainWindowID,24,24)) And (PanelToolBarID3) And (CreateTB(#ToolBar3,MainWindowID,24,24)) And (PanelToolBarID4) And (CreateTB(#ToolBar4,MainWindowID,24,24)) And (PanelToolBarID5) And (CreateTB(#ToolBar5,MainWindowID,24,24))
SetTBparent(#ToolBar1, PanelToolBarID1)
SetWinBackgroundColor(PanelToolBarID1, $DACABD)
UseTB(#ToolBar1)
SetTBimage(0,0,#TBpro_NORMAL)
SetTBimage(0,0,#TBpro_Hot)I use SetWinBackgroundColor() function (From Danilo lib) to set the panels Backgroundcolor for all my Toolbars.
I have created a new PanelGadget() inside an Option Window and the Background color of the Panel Gadget is the same as PanelGadget of my ToolBars (i've tried with different colors).
It seems that all PanelGadget are using the same BackGround color. So, if you change this color, all PanelGdget will change (not immediately, but they will).
Is there a way to set different colors for PanelGadget() ?
Thanks
Denis
