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
Full screen with objects resize
Re: Full screen with objects resize
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)}
If this is what you want you can do it this way:
DCREAD GUI .. EVAL {|o|o:setFrameState(XBPDLG_FRAMESTAT_MAXIMIZED)}
The eXpress train is coming - and it has more cars.
-
- Posts: 42
- Joined: Mon Dec 23, 2013 2:10 pm
- Contact:
Re: Full screen with objects resize
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()
...
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
Thank you Roger,
EVAL {|o|o:setFrameState(XBPDLG_FRAMESTAT_MAXIMIZED)}
This works for me. Many Thanks
EVAL {|o|o:setFrameState(XBPDLG_FRAMESTAT_MAXIMIZED)}
This works for me. Many Thanks