It is currently Tue Apr 13, 2021 11:42 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 5.73 QT ResizeWindow() failes...
PostPosted: Sat Jan 02, 2021 11:32 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Sep 20, 2004 7:12 am
Posts: 632
Location: Hell
... 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 ;))

_________________
Link dead?
Change h3x0r.ath.cx into hex0rs.coderbu.de and all will be fine.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye