Borderless Frame? Howto

Just starting out? Need help? Post your questions and find answers here.
Marlin
Enthusiast
Enthusiast
Posts: 406
Joined: Sun Sep 17, 2006 1:24 pm
Location: Germany

Post by Marlin »

I see a list of identifiers that should be your constants,
but I do not see how those receive their values.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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
Marlin
Enthusiast
Enthusiast
Posts: 406
Joined: Sun Sep 17, 2006 1:24 pm
Location: Germany

Post 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()
...
ClueLess
Enthusiast
Enthusiast
Posts: 360
Joined: Sun Jan 11, 2009 1:04 am

Post by ClueLess »

That works

Thank You
Post Reply