Code: Select all
Runtime Enumeration Gadget
#Gadget_Option0
#Gadget_Option1
EndEnumeration
XML$="<window id='#PB_Any' name='test' text='Gridbox' minwidth='auto' minheight='auto' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget'>" +
"<vbox>"+
"<option id='#Gadget_Option0' text='One' group='2'/>"+
"<hbox>"+
"<option id='#Gadget_Option1' text='Two' group='2'/>"+
"</hbox>"+
"</vbox>"+
"</window>"
ParseXML(0, XML$)
CreateDialog(0)
OpenXMLDialog(0, 0, "test")
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
Is that wanted behaviour of the dialog library? Because I couldn't find info in the help about that specific topic (also the explanation of the parameters is a bit...mere).