Page 1 of 1

Design screen in background

Posted: Fri Jun 16, 2017 1:53 am
by ampandya
Hi

I have a screen being designed when it loads using the code below:

DCGETOPTIONS ;
WINDOWHEIGHT win_height ;
WINDOWWIDT win_width;
PRESENTATION APRES ;
RESIZE RESIZEDEFAULT DCGUI_RESIZE_AUTORESIZE_SCALEFONT;
color tillbgcolour notitlebar

DCREAD GUI TITLE 'Till Sales' options getoptions parent @odlg FIT;
TIMEOUT atout EVAL {|o|o:setFrameState(XBPDLG_FRAMESTAT_MAXIMIZED),SetAppWindow(o)}

It has many buttons on the screen, When it loads its 1024,768 (standard) screen resolution. If the screen res is more than this the screen flickers many times as it is auto resizing the buttons on the screen.


Is there any way I can design this screen in the background and once its loaded to the size of the screen, Display it??

Thanks

Re: Design screen in background

Posted: Fri Jun 16, 2017 7:20 am
by Wolfgang Ciriack
Hi,
you can test if you use HIDE in DCGETOPTIONS and then
EVAL {|o|o:setFrameState(XBPDLG_FRAMESTAT_MAXIMIZED),SetAppWindow(o), o:show()}
brings a better result.

Re: Design screen in background

Posted: Thu Jun 22, 2017 9:10 am
by ampandya
Hi

Hide() and Show() doesnt help.
It creates the static and buttons on original size and then maximise and auto resize all the buttons.

thanks

Re: Design screen in background

Posted: Tue Jun 27, 2017 10:37 am
by rdonnay
I don't understand what is your problem.

Do you have a sample program that demonstrates your issue?