Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pop Up box with options - possible???
#1
I'm continuing to set up templates for my theater. I'm wondering it the following is possible.

On an overlay page I would like to be able to have a pop up box come up with, say four options. Upon choosing one of the options a global event would run and the box would close. I would call the the pop up from a command button of some kind.

As an example the pop up would say:

What do you want to do?

and the options would be:

Play a Blu Ray       Watch TV        Work on Computer      Play XBox
Thanks
George M
Reply
#2
You can either use a set of buttons, or it could a static list browser. The latter would allow for more options to be easily added later and for the list to be scrollable if there are more options than space.

When they press a list item, you get an event that you can react to. And you get the text of the item clicked on. If it's more convenient you can also load the static list browser with two lists, one of which is the displayed text and the other is for internal use. You could use the internal use text to pass to the global action to use (since that would let you change the displayed text if you need, without breaking the underlying logic.)
Dean Roddey
Explorans limites defectum
Reply
#3
But how do I get the pop up box that would contain the list browser?
Thanks
George M
Reply
#4
You mean how would you create it, or how once created, you would invoke it? For the former, you just create a template that has the functionality you want. For the latter, you would use the:

IntfViewer::InvokePopup()

command. Point it at the template and it will run that as a popup. You generally want to have some means to cancel as well, so probably a Cancel button. The System::Exit command lets you exit the popup, and return a true/false value so that you can do:

If IntfViewer::InvokePopup()
EndIf

And only do something if the user indicated to do it (e.g. one button does System::Exit(True) and the cancel button does System::Exit(False). That shows up as the result of the InvokePopup command and the If will use that.

But, if you are going to run the global action before the popup returns, then you don't care what the return value is. Both the Cancel button and the handler for the click on the list can just call System::Exit(False) to close the popup.
Dean Roddey
Explorans limites defectum
Reply
#5
Thanks,

I'll play with that and see how far I get.
Thanks
George M
Reply
#6
I'll try to get a 5.x compliant tutorial video up on that subject. I need to keep spitting out videos regularly, but I got so caught up in the voice control stuff I put the videos on the back burner. I just did one tonight that I need to upload. Maybe I can do that one tomorrow.
Dean Roddey
Explorans limites defectum
Reply
#7
Would love to see it.
Thanks
George M
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Thermostat options rhosch 17 3,970 05-27-2020, 12:58 PM
Last Post: Dean Roddey
  what touchscreen options if starting out today? capall 64 24,696 02-19-2016, 04:34 PM
Last Post: kblagron
  Serial Terminal options? IVB 21 9,523 01-24-2016, 10:43 AM
Last Post: Dean Roddey
  Windows 8.1 tablet options, February 2014 Mark Stega 38 18,999 11-12-2014, 07:51 AM
Last Post: Bal
  AV Receiver Options brathnach 13 6,236 12-03-2013, 07:48 AM
Last Post: wuench
  SiriusXM Options DaveB 14 5,530 12-09-2012, 05:16 PM
Last Post: DaveB
  Blueray DVD options sic0048 10 4,113 09-21-2012, 03:39 PM
Last Post: anogee
  Network Attached Audio Playback Options batwater 14 6,507 12-26-2011, 06:23 PM
Last Post: DaveB
  low-voltage landscape lighting control options? cwilson 3 3,057 11-19-2009, 09:37 AM
Last Post: cwilson
  Options for CQC on Win CE Devices jmwhooper 1 1,784 11-11-2009, 11:17 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)