Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Can I make the DBP window non-resizable and still use BlueGUI?

Author
Message
Scraggle
Moderator
23
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 19th Jan 2011 13:39 Edited at: 19th Jan 2011 14:08
I know I can use set window layout to make the window non-resizable but doing so screws up BlueGUI (no gadgets display).
In fact many of the window commands (position, size etc.) screw up BlueGUI but IanM's version of them doesn't. Unfortunately IanM doesn't have a version of set window layout.

So, any suggestions?

[Edit]
I've just found the resetMainWindow command in BlueGUI which is used to correct this. However, I can't get the window to display how I want it using set window layout. I can stop it being resizable by setting the first parameter to 13107200 (aquired from BlueGUI constants file). But I lose all the icons from the window.
What I want is a non-resizable window that has a close button on it. Anyone care to offer the settings to do that?

Thanks



=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 19th Jan 2011 20:05
Humanoid released an update to BlueGUI (v2.055 I think) which features just such a command.

Scraggle
Moderator
23
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 19th Jan 2011 20:22
I does. I had forgotten about it thanks.

The problem though, is that the maximize button is still present and if I turn that off with SET WINDOW LAYOUT it over-rules the non-resizable function.

What I need is a way to turn off the maximize button and remove the ability to resize the window. It seems I can have either one but not both.



=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 19th Jan 2011 20:57
Humanoids update does that as well



Scraggle
Moderator
23
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 19th Jan 2011 20:59
So it does!
Not sure how I missed the removeMaximized command.

Thanks very much!



=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 19th Jan 2011 21:04
No Probs

Login to post a reply

Server time is: 2026-07-18 02:09:13
Your offset time is: 2026-07-18 02:09:13