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.

DLL Talk / DBP Window size ???

Author
Message
Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 20th Sep 2005 01:16 Edited at: 20th Sep 2005 01:17
Is there a way to get the TRUE sizes in pixels of the dbp windows (without the borders) ?

if someone know a DLL that do this ... or know how to code this using Window's API.

spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 20th Sep 2005 01:55
AndLabs
19
Years of Service
User Offline
Joined: 7th Dec 2004
Location:
Posted: 20th Sep 2005 01:58
Or you could just use the project editor to see the size.

Good to see you're back, Cordier. What happened to your other projectS?

For the Software You Want, AMPERSAND LABORATORIES is the place!

Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 20th Sep 2005 10:35 Edited at: 20th Sep 2005 16:29
@spooky : thanks I will check them now

@AndLabs : I must know the size from inside the game/app ...
I never leaved the forum but it's rare I post in that one ... often in general and wip ones but...
[French way of speaking on]
X-4 will point it's noze soonly
[French way of speaking off]

[POST EDITING]
@Spooky : Thanks for the links, it's exactly what I'm looking for

Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Sep 2005 19:58
Hi Freddix,

The BlueGUI v2 equivalent is:

gadget=createGadgetFromWindow(mainWindow())

mainWinWidth=gadgetWidth(gadget)
mainWinHeight=gadgetHeight(gadget)


BlueGUI Windows Plugin
Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 23rd Sep 2005 10:17
heh !

Excellent thing you give me Rob.K
I'll get it a try to avoid using User32.dll library

Thanks.

xtom
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 23rd Sep 2005 22:28
Quote: "gadget=createGadgetFromWindow(mainWindow())

mainWinWidth=gadgetWidth(gadget)
mainWinHeight=gadgetHeight(gadget)"


I tried using that in one of my programs but it caused my menus to become very unresponsive. ie. I would click on the menu, it would drop down, I would then click on a menu item and it wouldn't do anything ie. show my other window. It would sometimes but it was very flickery and unresposive. I had to remove that code and use the user32.dll in the end to avoid the problem.

Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 23rd Sep 2005 23:03
@xtom : I don't have this problem in my software ... maybe a problem with an older release of BlueGUI v2 ?

All we have to decide is what to do with the time that is given to us.
url=http://www.xquadeditor.com/][/url]

Login to post a reply

Server time is: 2024-05-07 01:30:47
Your offset time is: 2024-05-07 01:30:47