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 / Extending BlueGUI's Functionality

Author
Message
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 26th Jul 2005 06:52 Edited at: 26th Jul 2005 06:56
As BlueGUI is a windows API wrapper it can detect and handle more messages than just what's in gui.dba

I'm including a list of Windows Messages here. Most gadgets can be checked for these message as well(like double clicks etc...). They can also alow you to check for some sytem functions as well.



I got them from here:
http://www.autohotkey.com/docs/misc/SendMessageList.htm

You can look on the MSDN website to see what a given message means.
http://msdn.microsoft.com/

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 26th Jul 2005 20:56
Cheers, very useful. I went looking for these a while ago, but only found the mouse click ones.

BatVink
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 27th Jul 2005 00:06
Yeah I was looking for double click. I eventually started looking for a complete list and this was the best I found.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Jul 2005 03:48
Nice - I thought my UpdGui.dba had a wide selection - until I saw this! Thanks, these will be very helpful.

-Xol

Ion Extension: 46 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Jul 2005 06:47 Edited at: 27th Jul 2005 23:07
Keaz, note this important message:
WM_MOVE 0x3
is also used to maximize/restore the window - thus I use:
WINDOW_MAXIMIZE 0x3
and update my gadget sizes/locations on a GADGET_SIZING or WINDOW_MAXIMIZE message.

Ion Extension: 46 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Jul 2005 08:23
Here is a button click function and example so that you can check for button clicks just like windows does (press and release on the button - no dragging click on/off)
The activateOptions sub is from one of my projects as an example of how to see what button was clicked. For another example, use the 'buttonClicked(' function and 'buttonIsSource(' function with the button example included in BlueGUI.


Here are some more 'createWindow(' extra styles, although like Keaz's messages, not all work exactly how you'd think they would:


-Xol

Ion Extension: 46 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 28th Jul 2005 09:17
I've just found another list in alphabetical order:



Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Jul 2005 09:24
I found a few standard styles for windows (Keaz, you might be interested in these - I've used them in IonRay IDE)



These can make a window start out maximized , so that you don't have to watch that scroll effect when you start up and the user has settings set to moximized.

-Xol

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 28th Jul 2005 09:48
I should note that only a subset of these messages are actually available through the event system. Some messages are discarded to avoid too many messages being delivered, thus crowding out the message queue.


BlueGUI Windows Plugin
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 28th Jul 2005 09:55
Ok there's a lot more than originally found. I was looking for something else and came across some code that had them in it.

The format may be hard to read but they're all there:


As for all the other messages windows handles for other controls:
https://trac.videolan.org/vlc/changeset/11593?format=diff
They're pretty much all there if you just search for the type your looking for like in the case of edit controls EM_XXX look for EM_

Good Luck!

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 28th Jul 2005 10:05
Ok that explains some things. I guess people can expirement to find out which ones are and aren't used.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 28th Jul 2005 10:07
RobK,
Is there a way to find out what that "subset" is?
Maybe you have a list of Definitions in your code some you could put in a simple list format?

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Jul 2005 10:41
Would there by any chance be a maximize/restore event other than window move (0x3)? It is a little hastlesome (and slow) updating my gadget aligns every time the window is moved.

Well, it's not so bad - most of the time it will be used in maximized and won't be able to be moved.

Perhaps the next BlueGUI could allow the user to specify what messages to see - thus not clogging the list with mouse moves if the app doesn't need them?
(I'll probably just add this in manually - thanks though.)

-Xol

Login to post a reply

Server time is: 2024-11-21 18:41:28
Your offset time is: 2024-11-21 18:41:28