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 / Blue GUI Menu Bar Only Works Once...

Author
Message
RegenProZ
18
Years of Service
User Offline
Joined: 20th Aug 2005
Location:
Posted: 26th Aug 2005 23:54
I have created a menu that appears at the top with a simple file>exit

anyway, I add a piece of command, to exit if the user clicks on the submenu exit.

This works, only it won't work if I add the command again, in a different loop..

What could I possible do to sort this out?

Thnx in advance

---------
How does a project get to be a year behind schedule? One day at a time
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 27th Aug 2005 00:19
Quote: "What could I possible do to sort this out?"


I'd like to help, but I need to see your code first.


BlueGUI Windows Plugin
RegenProZ
18
Years of Service
User Offline
Joined: 20th Aug 2005
Location:
Posted: 27th Aug 2005 00:31


What I am doing is adding the second bit of code inside every new do, loop I have. But it will only work within the first do, loop

---------
How does a project get to be a year behind schedule? One day at a time
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 27th Aug 2005 01:02
Quote: "What I am doing is adding the second bit of code inside every new do, loop I have. But it will only work within the first do, loop"


Are you calling getEvent within each of the loops?


BlueGUI Windows Plugin
RegenProZ
18
Years of Service
User Offline
Joined: 20th Aug 2005
Location:
Posted: 27th Aug 2005 01:04 Edited at: 27th Aug 2005 01:05
Edit: yes I am

---------
How does a project get to be a year behind schedule? One day at a time
I'm With Stupid (Below Me)
RegenProZ
18
Years of Service
User Offline
Joined: 20th Aug 2005
Location:
Posted: 27th Aug 2005 01:06
Hold On, it seems to be working now...

I think the problem is I had to many getevents, when I only needed one.

---------
How does a project get to be a year behind schedule? One day at a time
I'm With Stupid (Below Me)
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Aug 2005 23:42 Edited at: 27th Aug 2005 23:42
Yes, too many will get the event and then lose it when the next one is called. If you call 'getEvent:getEvent' you will lose every other event.

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
RegenProZ
18
Years of Service
User Offline
Joined: 20th Aug 2005
Location:
Posted: 28th Aug 2005 02:40
ok cool, can I just use the setgadgetvisible to hide my menu BTW?

---------
Don't ask me for the link, google search it lazy!
I'm With Stupid (Below Me)

Login to post a reply

Server time is: 2024-05-06 08:11:06
Your offset time is: 2024-05-06 08:11:06