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 / Blue Gui Command button

Author
Message
GreenDixy
17
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 11th Sep 2014 01:18
Not sure what, I am doing wrong. But, I have tried the following, Without success. Made a simple button, When pushing it nothing happens. Second example, When I click on the tab, Where the button is, Then message box comes up, And when I hit the button. Then it goes into kaos, And the message box keeps coming up, On its own.



Also tried, With the following.



Also have tried with using this method.



Thank you.

.:: Http://DeanWorks.Ca ::.
My software never has bugs. It just develops random features.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 11th Sep 2014 01:41 Edited at: 11th Sep 2014 01:46
Try something like this. Works for me. In your second snippet you don't need the last if.

This;
if eventType()=MENU_CLICK and If EventData()=atset then Message "Test", "Test..."

Should read;
if eventType()=MENU_CLICK and EventData()=atset then Message "Test", "Test..."



MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 11th Sep 2014 01:42
Try put like this



Alex Matei CEO
www.alexmatei.com
GreenDixy
17
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 11th Sep 2014 03:47
Thank you both, @MateiSoft Romania Worked like a charm thank you, So I guess I just had them reversed then.

.:: Http://DeanWorks.Ca ::.
My software never has bugs. It just develops random features.
Rims Flames
12
Years of Service
User Offline
Joined: 5th Apr 2014
Location:
Posted: 11th Sep 2014 13:56
Glad to help!

Rims Flames

Login to post a reply

Server time is: 2026-07-18 07:32:13
Your offset time is: 2026-07-18 07:32:13