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: Button reaction not working

Author
Message
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 16th Feb 2006 23:30
hello everyone!
for some reason whenever i click the button it doesent do anything and i told it
to do a message. here is the code:



if anyone could find out why my button isnt responding id be very greatfull


thanks
~snowfall

driftman
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: Somewhere Outside of Sanity
Posted: 17th Feb 2006 10:13
make sure you use GetEvent at the top of your main loop

change MOUSE_CLICK to 0x202 and see if that works, if it does, you forgot to include gui.dba
you shouldn't need to enable the button, it should be enabled when it is created.

make sure you have the gui.dba constants source included in your project.

I have a lil' white jacket that lets me hug myself forever.
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 17th Feb 2006 11:03
the

needs to be placed in a loop, otherwise it goes to it and never checks it again


amd athlon xp 2600+,1280mb,FX 5200 128mb,200gb,xp pro sp2
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 17th Feb 2006 16:09
i tried everything you suggested and its still not responding. heres my code:



IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 18th Feb 2006 13:48
i would try stepping the debugger through it, find out what the values are for your variables


amd athlon xp 2600+,1280mb,FX 5200 128mb,200gb,xp pro sp2
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 18th Feb 2006 19:27 Edited at: 18th Feb 2006 19:28
Please follow the debugging suggestions I posted in reply to your previous BlueGUI related thread.


BlueGUI Windows Plugin
driftman
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: Somewhere Outside of Sanity
Posted: 18th Feb 2006 21:05
your problem was you kept atext = 1 so it was creating the panel, textbox, and button several times, i got it to work using this:



I have a lil' white jacket that lets me hug myself forever.
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 22nd Feb 2006 01:46
Thank you so much Driftman!

Login to post a reply

Server time is: 2024-11-21 23:23:14
Your offset time is: 2024-11-21 23:23:14