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 / BBB GUI - No Set/Get Enabled?

Author
Message
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 14th Dec 2014 08:49
OK, so BBB GUI doesn't seem to be supported any longer and BlueGUI died long before that but I have been dabbling with BBB GUI again it seems that the commands to enable/disable a window are missing.

BBB WINDOW_SETDISABLED
BBB WINDOW_SETENABLED
BBB WINDOW_GETENABLED

These commands are in the keywords file but not the dll.

So unless Brendy Boy comes along with an update to BBB GUI does anyone know of a way to do this manually - perhaps a call to user32?

Thanks
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 14th Dec 2014 11:08
I haven't tried it but these should be the relevant functions:



WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 14th Dec 2014 11:17 Edited at: 14th Dec 2014 11:18
I checked the BBB GUI.dll with dumpbin and checked the resource string table. The functions are there and properly linked in. My keyword file shows the functions as -

ENABLE WINDOW
DISABLE WINDOW
WINDOW ENABLED
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 14th Dec 2014 12:00 Edited at: 14th Dec 2014 12:01
Thanks Rudolpho but that doesn't seem to work
This is what I tried:


The isEnabled function was reporting 1 - always but setEnabled had no affect.


WickedX - It seems you have an older version of BBB GUI before he changed all of the keywords. Would you mind uploading it please? I might be able to utilise some of the working commands from the older dll.

Thanks
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 14th Dec 2014 12:43 Edited at: 14th Dec 2014 14:34
Unfortunately, I just updated. I have found errors in the string table for these functions and have corrected them. Attached are the updated DLL’s.

Edit: I made an error this time. This error only affected BBB GUI no_uskin.dll. Download corrected, works now!

Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 14th Dec 2014 13:51
@Scraggle: It is possible that the handles returned by the BBB Gui plugin aren't the actual window handles (this is the case when using BlueGui at least, where you could call a special function to get the actual window handle from the gui references); you could look around the documentation if there are any such functions in BBB. I've never used it myself.

Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 14th Dec 2014 14:10
There's actually no documentation at all with BBB GUI. It's all very much trial and error.
However, the dll's that WickedX uploaded work perfectly. I'm not sure what you did to them but things are great now.

Thanks to both of you for your help
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 14th Dec 2014 14:44 Edited at: 14th Dec 2014 14:53
Happy to help. I have flagged this thread with a MailBack. Post back, if you have any more problems. 99 times out of a hundred, it's probably just an error in the stringtable. Easily corrected in a resource editor.

Login to post a reply

Server time is: 2026-07-07 08:18:52
Your offset time is: 2026-07-07 08:18:52