Hi,
in my programs, I use MODAL clause for all windows. While I do't use CASCADE option in DCGETOPTIONS, the windows
are created in a centre of a screen. But if I want to run more than one program, and move the program window for
example to a corner of the screen, the next modal window is displayed in a centre of the screen and not in a centre
of window, from which was invoked. How can I simply make for all modal window, that will be centered inside
(main) window, from which was invoked?
Piotr
Centered modal window
Re: Centered modal window
DCREAD GUI .. MODAL .. EVAL {|o|DC_CenterObject(o,oMainWindow:drawingArea)}
The eXpress train is coming - and it has more cars.
Re: Centered modal window
Roger,
thank you for your tips, it work. However, on the screen is one short "blink", but the new window is first created
on a centre of the screen and then is hide and re-created on new position. How can I solve this?
Regards
Piotr
thank you for your tips, it work. However, on the screen is one short "blink", but the new window is first created
on a centre of the screen and then is hide and re-created on new position. How can I solve this?
Regards
Piotr
-
- Posts: 147
- Joined: Thu Jan 28, 2010 9:24 am
- Location: Nitra, Slovakia
- Contact:
Re: Centered modal window
Hi Piotr,
try this:
DCGETOPTIONS HIDE
DCREAD GUI OPTIONS DCGETOPTIONS ;
EVAL { |o| SetAppWindow(o), ;
DC_CenterObject(..........), ;
o:show() ;
}
Hope this helps you
Zdeno
try this:
DCGETOPTIONS HIDE
DCREAD GUI OPTIONS DCGETOPTIONS ;
EVAL { |o| SetAppWindow(o), ;
DC_CenterObject(..........), ;
o:show() ;
}
Hope this helps you
Zdeno
Re: Centered modal window
Zdenko,
thank you, it work for me god.
Piotr
thank you, it work for me god.
Piotr
Re: Centered modal window
Roger,
It's possible to set global for all created windows (with DCREAD GUI and DC_GuiMemoEdit, DC_GuiAlert, DC_MsgBox),
that centering will be relative not to the screen, but to the main window?
Piotr
It's possible to set global for all created windows (with DCREAD GUI and DC_GuiMemoEdit, DC_GuiAlert, DC_MsgBox),
that centering will be relative not to the screen, but to the main window?
Piotr