PDA

View Full Version : Help : project full screen


nals
03-24-2007, 08:27 PM
How to make the project full screen, resize to all monitor size.?
No resizable, No movable,
hope this is clear
Thnaks :huh

RizlaUK
03-24-2007, 08:39 PM
do you mean kiosk mode or resize the actual window to the users screen

EDIT:

to make the window full screen use this

Dis = System.GetDisplayInfo();
Window.SetPos(Application.GetWndHandle(), 0, 0);
Window.SetSize(Application.GetWndHandle(), Dis.Width, Dis.Height);

to make the app a kiosk go in to settings and check the kiosk radio button

nals
03-24-2007, 08:51 PM
RizlaUK ........ man you are a legend !!!
This is what I want:

Dis = System.GetDisplayInfo();
Window.SetPos(Application.GetWndHandle(), 0, 0);
Window.SetSize(Application.GetWndHandle(), Dis.Width, Dis.Height);

Works fine, Thank you.:yes

nals
03-24-2007, 09:02 PM
RizlaUK , just a tiny problem, everything goes to left top corner when view in my monitor 19" widescreen.

yosik
03-25-2007, 07:34 AM
If you use Kiosk mode, you will get the app opening centered on screen.

Yossi

RizlaUK
03-25-2007, 08:52 AM
ok, remove this line

Window.SetPos(Application.GetWndHandle(), 0, 0);


then add this in globals

function CenterThisWindow()
local hWnd = Application.GetWndHandle();
local WndSize = Window.GetSize(hWnd);
local ScreenRes = System.GetDisplayInfo();
local NewPos_X = (ScreenRes.Width - WndSize.Width)/2;
local NewPos_Y = (ScreenRes.Height - WndSize.Height)/2;
Window.SetPos(hWnd, NewPos_X, NewPos_Y);
end

and put this in page on show
CenterThisWindow();

nals
03-25-2007, 05:27 PM
RizlaUK , I did that still not working, I have attached the file
:huh

RizlaUK
03-25-2007, 06:06 PM
works ok for me,

if you mean the objects are all to the top left then you need to reset there positions in page on size event, as when the window expands it dose it from the right and the bottom

and you should update your ams

your version 6.0.0.0

current version 6.0.5.0

nals
03-25-2007, 06:23 PM
I want everyhting to be in the middle, I mean the text the buttons.
maybe its my monitor, I have wide screen 19", Is the version make difference??
When you run , is everyhting on top left corner , or in the middle.?

I want all to be centered,

RizlaUK
03-25-2007, 07:18 PM
you are going to have to script it

when you have resizable apps or apps that change size at runtime you have to readjust the object positions to suit the screen size as every thing is pushed to the top left coz the window expands from the bottom and the right hand side

also you have to make the app resizable inorder to make it work

take a look in the page onsize to see what i mean

Worm
03-25-2007, 07:43 PM
you may be able to glean some information from this demo I threw together.

nals
03-25-2007, 08:51 PM
RizlaUk, That is working fine, you have added a script onSize. Thanks

and Worms sample file its a different methord also working fine too.

Thanks guys for you time to help me.

Thank you................:yes
and sorry if i m asking too many questions in this forum :rolleyes

well I won't learn if I don't ask questions.