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 / BlueGui - Case's not working, it wont get the events!

Author
Message
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 15th Feb 2006 05:58
hey everyone!
whenever i run my program none of the buttons work. like when i hit save and load a save/load dialog is supposed to come up. here is my code: please help!



Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 15th Feb 2006 15:59
somone? please

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Feb 2006 12:33 Edited at: 16th Feb 2006 12:34
It is difficult for me to help when there is just a large block of code is posted along with the message "this doesn't work!", you need to do some debugging before making a forum post.

In this case, the easiest way to debug the program is to add print statements just after getEvent to print out the values of variables and constants that the subsequent logic depends upon.

eg:

getEvent
if eventSource() <> 0 then print "Source:"+eventSource()
if eventType() <> 0 then print "Type:"+eventType()
if eventData() <> 0
print "Data:"+eventData()
print "MENU_CLICK:"+MENU_CLICK
endif

If after doing this the source of the problem isn't clear, post back with the results of your debugging.


BlueGUI Windows Plugin
The Fat Centurion
19
Years of Service
User Offline
Joined: 4th Dec 2004
Location: Swindon, UK
Posted: 16th Feb 2006 13:49
Hi =Sn0wfall Studi0s=,

im still getting my feet on this programming bit but i think i found your problem.

Quote: " getEvent
if eventType()=MENU_CLICK
select eventData()
"


when i ran the program i got the same problem then after a few message boxes, i noticed that Rob's gui.dba file wasn't there.

once i added this file it seems to work ok, buged out on the text box but other than that, ok

Hope this helps
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 16th Feb 2006 19:04
Cheers Centurion! thank you SOOOOO much. all i needed to add was:



thanks again bro

~sn0wfall studi0s

Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 16th Feb 2006 19:06
Hey rob, just curious, whenever i hit the "x" in the open/save dialog it shuts down my EXE. got any ideas?

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Feb 2006 20:19
Quote: "Hey rob, just curious, whenever i hit the "x" in the open/save dialog it shuts down my EXE. got any ideas?"


Yes, if the user closes the open/save dialog without entering a filename (eg. when they click the X button), an empty string will be returned.

You need to check for this in your code and make sure that you don't try to load the file if it doesn't exist or save a file with an invalid name.


BlueGUI Windows Plugin

Login to post a reply

Server time is: 2024-11-22 00:20:19
Your offset time is: 2024-11-22 00:20:19