Page 1 of 1

Full screen with objects resize

Posted: Tue May 24, 2016 9:15 am
by ampandya
Hi, How can i set a program to run full screen by default, on any resolution it should change it to full screen?

I tried to use WINDOWHEIGHT AppDeskTop():currentSize()[2] WINDOWWIDTH AppDeskTop():currentSize()[1]; with autoresize but it doesnt work.

Thanks

Re: Full screen with objects resize

Posted: Tue May 24, 2016 9:28 am
by rdonnay
When you say "full screen" do you mean "maximized"?

If this is what you want you can do it this way:

DCREAD GUI .. EVAL {|o|o:setFrameState(XBPDLG_FRAMESTAT_MAXIMIZED)}

Re: Full screen with objects resize

Posted: Tue May 24, 2016 9:34 am
by messaoudlazhar
Hi,
you can do the following:

nWidth := AppDeskTop():currentSize()[1]
nHeight := AppDeskTop():currentSize()[2]

aSize := {nWidth,nHeight}
oDlg := XbpDialog():new( , , , aSize)
.....
oDlg:create()
SetAppWindow(oDlg)
oDlg:show()
...

Re: Full screen with objects resize

Posted: Wed May 25, 2016 6:35 am
by ampandya
Thank you Roger,

EVAL {|o|o:setFrameState(XBPDLG_FRAMESTAT_MAXIMIZED)}

This works for me. Many Thanks