I have a multi-window application. There can be several windows all one on top of another.
I am planning on creating a thread that will block on an event. The event will fire via an interrupt. After it fires, I would like to display a simple dialog that will ask the user if they wish to shutdown the device? If they answer yes, a GPIO pin will be set and this will cause the power to be turned off. The question is how do I create a dialog from this thread and make it the top most window. I already know how to change the z-order of a window, what I need is an example showing how to instantiate the dialog from the thread and display it.
Can someone point me to some sample code as to how to do this?
Thanks in advance!