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 / A few bits of source to get you going with BlueGUI

Author
Message
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 14th Dec 2005 16:40
I've been developing a tool with BlueGUI and created some functions that I've been using to make handling the handles etc easier.

First of I create a custom variable type to hold my gadget handle information:



The next bit is a way of displaying an event code:



I did use a select/case statement but during testing I got a crash to desktop and wasnt sure if that was the cause. The if/endif seems to work ok though.

Next is rhe routine I use to add the handles into the array created above:



Below is an example of adding some gadgets using this method:



Once you have built your interface, you may be thinking, how do I work out what handles are returned by the different events. Well this is done by the next routine.



You pass this function the handle from the event and it will return the text string you gave when you created the gadget:



Next you may be wondering, How do I update a gadget with text etc. The following function does this for you:



You pass in the gadget name you picked for this gadget and it will return the handle for that gadget. An example of this is:



They seem to work really quickly, and if you have created a status bar, you can update this with the text values of the events etc. An example of which is here:



This is great for debugging, An example of using these routines is shown below:



As you can see in the status bar is the events that are happening.

Hope this helps some people.

Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Dec 2005 16:55
Hi Jas,

There is a little feature which may help you - You can use setGadgetData to associate a number or pointer with a gadget handle. This can then be retrieved using getGadgetData. In your case, you would use setGadgetData to associate the gadget array index with the gadget itself.


BlueGUI Windows Plugin

Login to post a reply

Server time is: 2024-11-21 19:12:04
Your offset time is: 2024-11-21 19:12:04