Home » Community » Newbie corner » Adjusting the Z order of a dialog window?
Adjusting the Z order of a dialog window? [message #49054] |
Sun, 10 December 2017 06:01 |
ptkacz
Messages: 89 Registered: March 2017
|
Member |
|
|
Hi Guys,
I've created a dialog class that gets invoked by the main application upon application launch as follows, within the application's constructor:
The dialog window's constructor is defined as follows:
SomeDialog::SomeDialog() {
CtrlLayout(*this, "Some Dialog");
CtrlLayout(SomePanel);
}
When the application is launched, the dialog window opens, but is hidden behind the application window.
How does one raise the dialog window above the application window?
Peter
|
|
|
Re: Adjusting the Z order of a dialog window? [message #49055 is a reply to message #49054] |
Sun, 10 December 2017 08:24 |
|
deep
Messages: 265 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
You can call "someDialog.open();" this using timercallback from constructor like,
SetTimeCallback ( 200, THISBACK ( your_function ), 0 );
With positive value it is called once after time delay ( first value is time delay in msec. )
This way you allow constructor to finish its tasks and then call Dialog.
Warm Regards
Deepak
[Updated on: Sun, 10 December 2017 08:24] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 15:10:37 CEST 2024
Total time taken to generate the page: 0.02987 seconds
|