Is there any way to force priority for foreground gadgets?
In this example button "two" is drawn on top of button "one". But if you click on the overlapping area the button in the back is activated instead of the one on top.
Code: Select all
OpenWindow(0,640,480,120,100,"")
CreateGadgetList(WindowID(0))
ButtonGadget(0, 10, 10, 70, 50, "One")
ButtonGadget(1, 40, 40, 70, 50, "Two")
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
End
Code: Select all
OpenWindow(0,640,480,120,100,"")
CreateGadgetList(WindowID(0))
ScrollAreaGadget(0,10,10,70,50,140,100,30,#PB_ScrollArea_BorderLess)
CloseGadgetList()
ButtonGadget(2, 40, 40, 70, 50, "Two")
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
End