detect a "hide pop-up" event
MorgoZ
Junior Member
Hi again!
I would like to know if there is a way to detect a "hide or close pop-up" event; because i would like to set a certain button state every time a concrete pop-up is close (and it could be closed through many buttons).
Many thanks to all and salutes!
I would like to know if there is a way to detect a "hide or close pop-up" event; because i would like to set a certain button state every time a concrete pop-up is close (and it could be closed through many buttons).
Many thanks to all and salutes!
Comments
-
Tie the "close" button to an event and track it with a variable.
I don't use page feedback in my code, but this could be a way to go as well. -
Another thing you can consider is the little used string output port available to you in TPDesign. Find the ways to close or hide the pop-up and have the button press send you a string on the port YOU specify. Track the strings (your own syntax protocal here) through a data event for the port you specify and flag away.
-
When the panel does online, send it a TPAGEON command in the online event. This will make sure page tracking is on. Then monitor the STRING event for the panel. When a popup comes on, it will generate a string that will say 'PPN-'<page name>, and when it goes off it will be PPF instead of PPN. All string events are on the panel's port 1.
-
Thanks to all!
I were looking for something like DHawthorne said, because i considered catching the "close" events through all the buttons that closes the pop-up, but the problem is that they are many, and i think that it is "cleaner" catching the event just through the pop-up than through all the buttons.
But like i said, many thanks to all!!!!!!
Salutes! -
DHawthorne wrote: »When the panel does online, send it a TPAGEON command in the online event. This will make sure page tracking is on. Then monitor the STRING event for the panel. When a popup comes on, it will generate a string that will say 'PPN-'<page name>, and when it goes off it will be PPF instead of PPN. All string events are on the panel's port 1.
That was the other alternative I was alluding to - just didn't know the TPAGEON command would initiate it. That would probably be the *easiest* way. Learn something new everyday!
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums