Detecting if a popup is currently shown
slip cougan
Posts: 34
Is this possible?
If I send:
SEND_COMMAND devPanels[panelIndex],"'PPON-Dialog'" for instance.
Is there a way to test whether or not Dialog is still active apart from setting a flag in the code?
Thanks
slip
If I send:
SEND_COMMAND devPanels[panelIndex],"'PPON-Dialog'" for instance.
Is there a way to test whether or not Dialog is still active apart from setting a flag in the code?
Thanks
slip
0
Comments
Thanks for the reply.
I have page tracking turned on but I don't seem to see anything from the panel.
From Notifications (everything on):
Line 1 :: Input Status:Pushed [10002:1:1] - Channel 22 - 09:39:57
Line 2 :: Feedback:Off [10002:1:1] - Channel 21 - 09:39:57
Line 3 :: Output Channel:Off - From [10002:1:1] - Channel 21 - 09:39:57
Line 4 :: Command To [10002:1:1]-[^BOP-21.21,1,255] - 09:39:57
Line 5 :: Command To [10002:1:1]-[^BCB-21.21,1,87] - 09:39:57
Line 6 :: Level Value From [10002:1:1] - Level 22 Value= 0 - 09:39:57
Line 7 :: Input Status:Released [10002:1:1] - Channel 22 - 09:39:57
Line 8 :: Command To [10002:1:1]-[PPOF-Sat1] - 09:39:57
Line 9 :: Feedback:On [10002:1:1] - Channel 22 - 09:39:57
Line 10 :: Output Channel:On - From [10002:1:1] - Channel 22 - 09:39:57
Line 11 :: Level Value To [10002:1:1] - Level 1 Value= 32 - 09:39:57
Line 12 :: Command To [10002:1:1]-[^BOP-22.22,3,255] - 09:39:57
Line 13 :: Command To [10002:1:1]-[^BCB-22.22,3,6] - 09:39:57
Line 14 :: Command To [10002:1:1]-[PPON-[menu]
Line 15 :: Command To [10002:1:1]-[PPON-Sat2] - 09:39:57
Line 16 :: Command To [10002:1:1]-[^TXT-1.1,0,Russian Satellite] - 09:39:57
Line 17 :: Command To [10002:1:1]-[PPOF-[menu] splash] - 09:39:57
Line 18 :: Command To [10002:1:1]-[!TdDevice: 2] - 09:39:57
Line 19 :: Command To [10002:1:1]-[!TeZone: 1] - 09:39:57
Line 20 :: Command To [10002:1:1]-[!TfIcon: 32] - 09:39:57
Am I expecting a command from the panel?
I am currently tracking the popups in an arrary but I was looking for something a bit more robust.
Thanks
slip
Hi Bigsquatch,
Thanks for the response.
If it is a dialog type popup then I tend to to this. Mainly I'm trying to track device pages across multiple panels.
Each page uses a standard set of Address codes for transports etc.
I must admit I haven't done any AMX programming for over 3 years so I had a look through the AMX-PI before I posted this question. I noted that there seems to be a few new commands appeared since last time I wrote anything major.
Seems odd that you can query the panel for just about anything else but still can't query popups!
Ho hum
Regards
slip
Hi Eric,
I tend to write a lot of code for the other side. We have some programmers that will use page flips in the panel. Others like myself who like to do it all in code. Always more than one way to skin a cat. In the end as long as the system as a whole is sound then I don't have a problem with that. Just when it comes to debugging someones elses code will I have a moan about the non-code handled method.
I'm sure this topic has been covered extensivly here before
Regards
slip
Eric, great job in heading this off at the pass.
Still lurking and reading...
Do you have a data_event with a string handler in it for the touchpanel? You won't see a string from the touchpanel in the notifications unless you have that.
You won't get notifications of page flips from the panel if that page flip is driven from code, only from page flips embedded in the local tpd file.
Ahh, that explains why I get nothing back.
OK I'll stick with my original idea and track the pages in an array.
Thanks for all the replys everyone.
Regards
slip
To the OP: tracking which popup is displayed via code really is the way to go.