Dynamic screen variables


Author
Message
zajac
zajac
Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)
Group: Forum Members
Posts: 28, Visits: 98
Hi guys.  I am doing a fair bit of programming on a small laptop, but the actual testing of participants is done on 22" monitors.  If I set my position parameters in %, I can't control the distance between them (in terms of pixels).  If I define positions using pixels, then the way I define them for the bigger monitors means they won't display properly on a smaller monitor. 

Imagine the following scenario.  I have four squares that I want to display centrally.  Each square will be positioned 50px from the centre most point.  The large monitors have a vertical resoultion of 1080, so mid screen is 510px.  On the laptop though, vertical resolution is 768px.  So if I use the same program on the laptop it won't display centrally.

What I'm thinking is dynamically defining a position.  For instance, can I create a variable (displaypos) which equals (verticalresolution/2)?  Then, I could display images using verticalposition = displaypos? 

Hoping someone has a fix for this issue.  Maybe it's easier than I think?  Anyway, thanks in advance for any advice!


Ian.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search