Page 1 of 1

PB_Window_Background has no effect when used with Dialog

Posted: Fri Feb 01, 2019 10:49 am
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  

Re: PB_Window_Background has no effect when used with Dialog

Posted: Mon Feb 04, 2019 2:38 pm
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

Re: PB_Window_Background has no effect when used with Dialog

Posted: Mon Feb 04, 2019 7:06 pm
by Fred
Added it to the dialog lib.

Re: PB_Window_Background has no effect when used with Dialog

Posted: Mon Feb 04, 2019 10:44 pm
by Peter
Fred wrote:Added it to the dialog lib.
cool! Thank you! :)

Greetings ... Peter

Re: PB_Window_Background has no effect when used with Dialog

Posted: Tue Feb 05, 2019 10:00 pm
by Torp
Thank you Sir ! :)