Jump to content

Recommended Posts

Posted

Hello,

 

i try to create a form with a fix width of 480 and a fix height of 820 pixel - so the form is "fixed" to the width of a mobileDeviceScreen and can be scrolled just in the height ..

i tryed a lot of things but can not realise this ..

 

and i get allways 1024 x 768 as screenresolution .. doesnt matter witch device

 

thanks for helping

 

erich

 

x:=screen.WorkAreaWidth;
y:=screen.WorkAreaHeight;
unimemo1.Lines.Append('Workarea:'+inttostr(x)+'  '+inttostr(y));

x:=screen.Width;
y:=screen.Height;
unimemo1.Lines.Append('Screen: '+inttostr(x)+'  '+inttostr(y));

UniApplication.SetScreenWH(480,640);

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...