Full screen with objects resize

This forum is for eXpress++ general support.
Post Reply
Message
Author
ampandya
Posts: 58
Joined: Tue Apr 19, 2016 4:48 am

Full screen with objects resize

#1 Post 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

User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Full screen with objects resize

#2 Post 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)}
The eXpress train is coming - and it has more cars.

messaoudlazhar
Posts: 42
Joined: Mon Dec 23, 2013 2:10 pm
Contact:

Re: Full screen with objects resize

#3 Post 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()
...

ampandya
Posts: 58
Joined: Tue Apr 19, 2016 4:48 am

Re: Full screen with objects resize

#4 Post by ampandya »

Thank you Roger,

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

This works for me. Many Thanks

Post Reply