ich habe folgenden Code:
Code: Alles auswählen
#Dialog = 0
#Xml = 0
XML.s = "<window id='#PB_Any' name='test' text='test' minwidth='320' minheight='200' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget'>" +
" <hbox>" +
" <vbox>" +
" <editor name = 'text' text = 'Text' expand = 'yes'/>" +
" <button name = 'knopf1' text = 'Knopf 1' expand = 'no' maxheight = '10'/>" +
" <button name = 'knopf2' text = 'Knopf 2' expand = 'no' maxheight = '10'/>" +
" </vbox>" +
" <vbox>" +
" <image name='img' flags = '#PB_Image_Raised'/>" +
" </vbox>" +
" </hbox>" +
"</window>"
If ParseXML(#Xml, XML) And XMLStatus(#Xml) = #PB_XML_Success
If CreateDialog(#Dialog)
If OpenXMLDialog(#Dialog, #Xml, "test")
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
Else
Debug "Dialog error: " + DialogError(#Dialog)
EndIf
Else
Debug "XML error: " + XMLError(#Xml) + " (Line: " + XMLErrorLine(#Xml) + ")"
EndIf
End
Auch sollen beide 'vbox' gleich breit sein egal wie breit das Fenster ist. Ich probiere jetzt schon eine ganze Weile und bekomme es nicht hin. Die Pb Hilfe zu Dialog finde ich nicht sehr ergiebig.
Bei mir sieht das so aus.
nach dem Programmstart:
etwas vergrößert:
Ist da noch irgendwo mehr Dokumentation verfügbar?
Ich habe mal wieder das Gefühl das ich was übersehe.
Gruß