PB_Window_Background has no effect when used with Dialog

Just starting out? Need help? Post your questions and find answers here.
Torp
Posts: 4
Joined: Wed Feb 26, 2014 9:27 am

PB_Window_Background has no effect when used with Dialog

Post by Torp »

Hello,

I'm having a little problem. The #PB_Window_Background parameter, seems to have no effect when the window is created with OpenXMLDialog. Is there a way to get around the problem to full screen using OpenXMLDialog?

Code: Select all

#Xml = 0
#Dialog = 0

; Define our dialog window here, using regular XML
;
XML$ = "<window id='#PB_Any' name='dialog1' text='Dialog example' flags='#PB_Window_Background'>" +
       "    <vbox>" +
       "      <option name='option1' text='Enter your credit card:' group='1'/>" +
       "      <string name='string' width='50' height='30'/>" +
       "      <option name='option2' text='Use paypal account' group='1'/>" +
       "      <option name='option3' text='Use wiretransfert' group='1'/>" +
       "      <hbox>" +
       "        <button name='ok' text='Continue' height='35'/>" +
       "        <button name='cancel' text='Cancel'/>" +
       "      </hbox>" +
       "    </vbox>" +
       "  </window>"

If ParseXML(#Xml, XML$) And XMLStatus(#Xml) = #PB_XML_Success

  If CreateDialog(#Dialog) And OpenXMLDialog(#Dialog, #Xml, "dialog1")
    Debug "Dialog successfully created"
    
    ; Use DialogGadget() to retrieve a gadget and use standard commands on it:
    Option3 = DialogGadget(#Dialog, "option3")
    SetGadgetState(Option3, #True) ; Set the 3rd option gadget as selected
  Else
    Debug "Dialog error: " + DialogError(#Dialog)
  EndIf
Else
  Debug "XML error: " + XMLError(#Xml) + " (Line: " + XMLErrorLine(#Xml) + ")"
EndIf  
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: PB_Window_Background has no effect when used with Dialog

Post by Peter »

Torp wrote:The #PB_Window_Background parameter, seems to have no effect when the window is created with OpenXMLDialog.
yes, that's correct. See: viewtopic.php?p=4801#p4801

Greetings ... Peter
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: PB_Window_Background has no effect when used with Dialog

Post by Fred »

Added it to the dialog lib.
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: PB_Window_Background has no effect when used with Dialog

Post by Peter »

Fred wrote:Added it to the dialog lib.
cool! Thank you! :)

Greetings ... Peter
Torp
Posts: 4
Joined: Wed Feb 26, 2014 9:27 am

Re: PB_Window_Background has no effect when used with Dialog

Post by Torp »

Thank you Sir ! :)
Post Reply