I've tried everything (singlebox/vbox/hbox/gridbox...) but nothing works.
If you set margin='20', you get the expected result all round.
However, all combinations of margin='top:xx, bottom:xx,...' don't work.
In this example I'd like to offset the tabs at the top of the screen but nothing works and I don't know why.
If you have any ideas, I'd love to hear from you.
Thanks
Code: Select all
#Xml = 0 : #Dialog = 0
XML$ = "<window id='#PB_Any' name='dialog1' text='test' flags='#PB_Window_Background'>" +
" <singlebox margin='top:100, bottom:20, horizontal:10'>" +
" <panel name='Tab'>" +
" <tab text='Tab1'/>" +
" <tab text='Tab2'/>" +
" </panel>" +
" </singlebox>" +
" </window>"
If ParseXML(#Xml, XML$) And XMLStatus(#Xml) = #PB_XML_Success
If CreateDialog(#Dialog) And OpenXMLDialog(#Dialog, #Xml, "dialog1")
Debug "Dialog successfully created"
Else
Debug "Dialog error: " + DialogError(#Dialog)
EndIf
Else
Debug "XML error: " + XMLError(#Xml) + " (Line: " + XMLErrorLine(#Xml) + ")"
EndIf