1.40 DesktopHeight broken with dialog lib

Just starting out? Need help? Post your questions and find answers here.
tj1010
Posts: 218
Joined: Wed May 27, 2015 1:36 pm
Contact:

1.40 DesktopHeight broken with dialog lib

Post by tj1010 »

Code: Select all

ExamineDesktops()
Debug DesktopHeight(0)
Debug DesktopWidth(0)
Global XML$ = "<window id='#PB_Any' name='d1' text='Dialog example' minwidth='"+Str(DesktopWidth(0))+"' minheight='"+Str(DesktopHeight(0))+"' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu'>" +
              "    <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(0,XML$)
  If CreateDialog(0) And OpenXMLDialog(0,0,"d1")
  EndIf
EndIf
Latest Chrome Win 8.1 x64 SB 1.40
User avatar
SparrowhawkMMU
Posts: 291
Joined: Wed Aug 19, 2015 3:02 pm
Location: United Kingdom

Re: 1.40 DesktopHeight broken with dialog lib

Post by SparrowhawkMMU »

Confirmed, Mac OS X 10.9.5, Firefox 48.0.1

Title bar is cropped and the SB window extends beyond the browser window confines. I think it's slightly worse using the Aero rather than Flat theme, but I could be imagining that
Fred
Site Admin
Posts: 1821
Joined: Mon Feb 24, 2014 10:51 am

Re: 1.40 DesktopHeight broken with dialog lib

Post by Fred »

minwidth/height in dialog are the innerwidth/height so you have to substract the window title and border if you want you get it right
Post Reply