Screen scaling and BindTop

8 views
Skip to first unread message

Andy R

unread,
Sep 25, 2025, 6:46:51 PMSep 25
to Migrated By Firefly
Our customer uses a laptop with a second monitor attached. The monitor is set to 100% scaling and is usually the primary display, but when the monitor is detached and the laptop screen is used, that one is 125%.  Most of our screens scale correctly without any extra work, but we've found some screens do not, and controls overlap and are unusable.

We've tracked the problem down to controls that have a BindTop property set with an absolute value.  These controls don't scale to the correct position on screen.  BindTop is used because the positions of the controls are determined conditionally.

I've read through the scaling code example.  Would that fix our issue, or would it cause other problems?  Is there a better way to deal with BindTop and scaling?

We're using ENV 32398.

Thanks,
Andy

ilan masarano

unread,
Sep 26, 2025, 11:31:57 AMSep 26
to Migrated By Firefly
I resulved simpler problem by having a global var that set the scale 100/150 and so, and a global method that return the relevant size.
One more way is to set the advance  anchoring and  use the winform version of it.

Reply all
Reply to author
Forward
0 new messages