Just starting out? Need help? Post your questions and find answers here.
User avatar
Peter
 
Posts: 445
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

DialogGadget & Disabled-Flag

by Peter Mon Nov 06, 2017 1:48 pm

Hello,

correct me if I'm wrong, but shouldn't the gadgets be disabled?

Code: Select all
#Dialog = 0
#Xml = 0

XML$ = "<window id='#PB_Any' name='test' text='test' minwidth='500' minheight='500' flags='#PB_Window_ScreenCentered'>" +
       " <vbox>" +
       "   <string text='i am not disabled' disabled='yes' />" +
       "   <editor text='i am not disabled' disabled='yes' />" +
       " </vbox>" +
       "</window>"

If ParseXML(#Xml, XML$) And XMLStatus(#Xml) = #PB_XML_Success
  If CreateDialog(#Dialog) And OpenXMLDialog(#Dialog, #Xml, "test")
    Debug "Dialog created"     
  Else 
    Debug "Dialog error: " + DialogError(#Dialog)
  EndIf
Else
  Debug "XML error: " + XMLError(#Xml) + " (Line: " + XMLErrorLine(#Xml) + ")"
EndIf


Thanks in advance & Greetings ... Peter
Return to Coding Questions

Who is online

Users browsing this forum: plouf and 2 guests