It is currently May 1st, 2024, 3:35 am

Determining screen width on multi monitor displays.

Get help with creating, editing & fixing problems with skins
User avatar
bobgrosh
Posts: 134
Joined: May 1st, 2011, 10:33 pm

Determining screen width on multi monitor displays.

Post by bobgrosh »

While #WORKAREAWIDTH# and #SCREENAREAWIDTH# give you the width of the screen if you have one monitor, it only gives you half or 1/3rd the width if your desktop is extended to a second or third monitor. It is also not even possible to provide a user configurable variable for monitor count and multiply the width because the monitors may have different resolutions.

Is there a way to solve this?

I want to display a bitmap that is 400 by 20 and stretch it so it extends from the left edge of the primary (left) monitor to the right edge of the secondary (right) monitor. I want it to work automatically, regardless of the number of monitors.

I'm thinking there must be a way to draw something and have the skin position it on the extreme right to discover the actual width.
Or, perhaps use a impossibly wide text string and somehow detect word wrap?
User avatar
bobgrosh
Posts: 134
Joined: May 1st, 2011, 10:33 pm

Re: Determining screen width on multi monitor displays.

Post by bobgrosh »

Never mind...

I just found a whole section of the maunal on multiple monitors.

Gosh, Why had I never found that before. I'll go stand in the corner. :oops: