5.73 QT ResizeWindow() failes...

Post bugreports for the Linux version here
User avatar
Posts: 632
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

5.73 QT ResizeWindow() failes...

Post by HeX0R »

... when the flag #PB_Window_SizeGadget is missing.
Without subsystem qt it works as expected.

Code: Select all

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$

a$ = GetXMLString()
CatchXML(0, @a$, StringByteLength(a$), 0, #PB_Unicode)
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 ;))
Link dead?
Change h3x0r.ath.cx into hex0rs.coderbu.de and all will be fine.