Page 1 of 1

1.40 DesktopHeight broken with dialog lib

Posted: Wed Aug 31, 2016 2:01 am
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

Re: 1.40 DesktopHeight broken with dialog lib

Posted: Wed Aug 31, 2016 8:23 am
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

Re: 1.40 DesktopHeight broken with dialog lib

Posted: Tue Oct 25, 2016 8:27 am
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