Page 1 of 1

Ugly nod to start Windows with DCSTATUSBAR

Posted: Tue May 19, 2015 12:50 am
by JManuelVar
Good Morning.

I have the following problem. All application screen has a button bar below. To Launch Windows (1) Displays the content of Windows without the Button Bar, and (2nd) is then redimenciona and Button Bar and Mesnaje appears.

This proboca a wink of ugly display.

How can I avoid.
This is Code

DCGETOPTIONS NOBUSY HILITEGETS COLOR_RED NOSUPERVISE ;
COLORGETS { { CIDA_GET_A0,CIDA_GET_A1, } , { CIDA_GET_P0, CIDA_GET_P1 } } ;
SAYFONT ('9.Segoe UI') GETFONT ('12.Segoe Condensed') FONT ('10.Segoe UI');
WINDOWWIDTH 1020 WINDOWHEIGHT 720

DCREAD GUI OPTIONS GetOptions ;
TITLE 'FICHERO de ARTICULOS' SETAPPWINDOW ;
HANDLERBLOCK bHandler

Re: Ugly nod to start Windows with DCSTATUSBAR

Posted: Tue May 19, 2015 3:55 am
by Eugene Lutsenko
Help can not do anything, but it looks very-very cool

Re: Ugly nod to start Windows with DCSTATUSBAR

Posted: Tue May 19, 2015 4:16 am
by Koverhage
Maybe you can set the pos with
WINDOWROW aPos[2]
WINDOWCOL aPos[1]

Re: Ugly nod to start Windows with DCSTATUSBAR

Posted: Tue May 19, 2015 7:07 am
by bwolfsohn
perhaps a main static window containing the button bat and them another child static container for all the other windows.

Re: Ugly nod to start Windows with DCSTATUSBAR

Posted: Tue May 19, 2015 11:12 am
by Cliff Wiernik
What exactly is your problem. If it is that it is first building the windows with the bottom status bar off the screen or lower than desired and then it repositions it the way it is supposed to be, but you can see this happening, try this.

DCGETOPTIONS ...... HIDE

and then in the DCREAD

DCREAD EVAL {|o| .......
DC_StatusBarRepaint(o),o:show() }

That initially hides the dialog when express is repositioning and repainting it with the DC_StatusBarRepaint(o) and then shows it after completed.

Re: Ugly nod to start Windows with DCSTATUSBAR

Posted: Wed May 20, 2015 12:43 am
by JManuelVar
OK. Fixed as you have shown me. HIDE and Show ().
Thank you.

Re: Ugly nod to start Windows with DCSTATUSBAR

Posted: Wed May 20, 2015 7:36 am
by rdonnay
Thanks for giving him the answer Cliff.

That's a nice looking screen.