PureBasic Forum
http://forums.purebasic.com/english/

5.73 QT ResizeWindow() failes...
http://forums.purebasic.com/english/viewtopic.php?f=23&t=76515
Page 1 of 1

Author:  HeX0R [ Sat Jan 02, 2021 11:32 am ]
Post subject:  5.73 QT ResizeWindow() failes...

... when the flag #PB_Window_SizeGadget is missing.
Without subsystem qt it works as expected.
Code:
Procedure.s GetXMLString()
   Protected XML$

   XML$ + "<?xml version='1.0' encoding='UTF-16'?>"
   XML$ + ""
   XML$ + "<dialogs>"
   XML$ + "  <window name='window_1' flags='#PB_Window_SystemMenu' text='test' minwidth='300' minheight='250'>"
   XML$ + "    <editor name='editor_1' width='300' height='250'/>"
   XML$ + "  </window>"
   XML$ + "</dialogs><!--DDesign0R Definition: PureBasic|1|1|0-->"
   XML$ + ""

   ProcedureReturn XML$
EndProcedure

a$ = GetXMLString()
CatchXML(0, @a$, StringByteLength(a$), 0, #PB_Unicode)
CreateDialog(0)
OpenXMLDialog(0, 0, "window_1")
ResizeWindow(DialogWindow(0), #PB_Ignore, #PB_Ignore, 600, 400)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow


(btw.: the result will be even funnier, when you remove the minwidth and minheight attributes ;))

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/