Page 2 of 2

Posted: Wed Jun 17, 2009 9:31 am
by Marlin
I see a list of identifiers that should be your constants,
but I do not see how those receive their values.

Posted: Wed Jun 17, 2009 9:32 am
by Trond
Coordinates given to gadgets inside a container gadget are relative to the position of the container gadget.

Code: Select all

If OpenWindow(0, 0, 0, 540, 310, "OptionGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ContainerGadget(0, 30, 130, 400, 40, #PB_Container_Flat) 
    OptionGadget(1, 40, 8, 170, 20, "Subsidio de Natal 50%") 
    OptionGadget(2, 250, 8, 175, 20, "Subsidio de Natal 100%") 
  CloseGadgetList()
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

Posted: Wed Jun 17, 2009 9:47 am
by Marlin
Trond is right.

With that correction (...) I could see them show up and work as I would expect
using (most of) ClueLess's code.

Code: Select all

...
           ContainerGadget(#Frm_Ctnr_Vacation, 30, 100, 400, 40, #PB_Container_BorderLess)
         OptionGadget(#Opt_Vacations_50, 5, 5, 170, 20, "Subsidio de Férias 50%")
         OptionGadget(#Opt_vacations_100, 215, 5, 175, 20, "Subsidio de Férias 100%")
         CloseGadgetList()

;         Frame3DGadget(#Frm_ctnr_Christmas, 30, 130, 400, 40, "")
           ContainerGadget(#Frm_ctnr_Christmas, 30, 130, 400, 40, #PB_Container_BorderLess)
         OptionGadget(#Opt_Christmas_50, 5, 5, 170, 20, "Subsidio de Natal 50%")
         OptionGadget(#Opt_Christmas_100, 215, 5, 175, 20, "Subsidio de Natal 100%")
         CloseGadgetList()
...

Posted: Wed Jun 17, 2009 10:10 am
by ClueLess
That works

Thank You