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.

Author
Message
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 21st Dec 2003 17:07 Edited at: 21st Dec 2003 17:38
Does anybody know if there is a way to get the width/height of a window?

It can be set easily enough but I want to put a gadget 100 pixels from the right window border and I need the user to be able to resize the window, keeping the gadget where it is relative to the windows edge.

The only window commands I can find are to set its size and position.

Anybody?

Thanks

[Edit] Alternately is there a way to make the window non-resizeable and non-dragable I have tried SET WINDOW LAYOUT but as usual the help files and reference manual don't say what the flag values should be.[/Edit]

GOD exists and his name is Jonny Wilkinson

OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Dec 2003 19:08
Someone's got a routine for it - dont know who though...


The place for all great plug-ins
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 21st Dec 2003 19:30
For window gadgets:
Gadget Width()
Gadget Height()

For the main window:
DBP Window Width()
DBP Window Height()


BlueGUI Plugin:http://blue.robert-knight.net / BlueIDE http://blueide.sf.net-Free Replacement editor for DBPro
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 21st Dec 2003 19:59
Thanks Rob - That will do it

But how did you guess I was using your plugin? >

GOD exists and his name is Jonny Wilkinson

Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 21st Dec 2003 20:29
Because nowhere else do you find the word "gadget" in DarkBASIC


BlueGUI Plugin:http://blue.robert-knight.net / BlueIDE http://blueide.sf.net-Free Replacement editor for DBPro
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 21st Dec 2003 20:57
Genius!

GOD exists and his name is Jonny Wilkinson

Login to post a reply

Server time is: 2024-05-19 11:33:59
Your offset time is: 2024-05-19 11:33:59