U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » SOLVED: Array and Grid on high definition monitor
Re: Array and Grid on high definition monitor [message #49595 is a reply to message #49594] Thu, 08 March 2018 14:30 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
forlano wrote on Thu, 08 March 2018 12:10
mirek wrote on Thu, 08 March 2018 10:01


Is not it possible that you have some issue in your code, like using SetLineCy or some custom Displays? AttrText?



In both case I use SetLineCy and custom Display.
I have not a Surface machine. I'll try to do a short program showing the issue.

Thanks,
Luigi


Well, those numbers with SetLineCy etc... are absolute number of pixels. They should always be scaled. You can scale with Zx / Zy (for zoom X or zoom Y) - this scales based on size of standard font and should therefore take care about HDPI displays.

Alternative is using DPI - this simply multiplies the argument by 2 if running on HDPI. Better for image related work.

Also note that .iml images can be scaled automatically, if they are set correctly - Image can be marked as normal DPI (and is then automatically upscaled in HDPI), or can be marked HIDPI (and is eventually downscaled), or is "no resolition" and left intact.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridControl release memory
Next Topic: [BUG #1739, + PATCH]ArrayCtrl: in Multiselect mode, WhenSel is called 5 time each cursor change
Goto Forum:
  


Current Time: Sun Apr 26 17:18:52 GMT+2 2026

Total time taken to generate the page: 0.00467 seconds