WxMax - Frame to front / always on top

BlitzMax Forums/Brucey's Modules/WxMax - Frame to front / always on top

Volker(Posted 2008) [#1]
I am creating a frame which should pop up over an
running application, deliver some information and then
disappear again.
Most times this works fine.
But sometimes the frame appears behind the application.
I' ve tried in a loop:
- frame.show()
- frame.refresh()
- frame.setfocus
- frame.update()
- write some text to a wxTextCtrl
- draw a pic in a StaticBitmap
to bring it to the front. Nothing helps.
If I call a Notify ("") after frame.show the frame goes to the front,
but that's no solution.
Any ideas out there?


Brucey(Posted 2008) [#2]
There are two styles available... wxSTAY_ON_TOP and wxFRAME_FLOAT_ON_PARENT.

The first will stay on top of all other windows. The latter will always be on top of its parent window. (parent should not be Null in that case).


Volker(Posted 2008) [#3]
Thanks, works fine now. Just wondering why the flags are not available in Formbuilder..
And yes, a short view in the documentation would have solved
my problem. I did not even had the idea to type wxframe and press F1.
Instead I spended half the afternoon searching at MSDN and the forums , lol.