Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

I don't understand how CT processes scaling 1 year 1 month ago #18114

  • Roman
  • Roman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 103
  • Thank you received: 0
In the form designer I use an ImageList with 50x50 pixel images. I use these images for the TBitBtn buttons, and everything looks good in the form designer:

 

But when you launch the application, the situation changes:

 

And I can't understand why this is happening?
Attachments:

Please Log in or Create an account to join the conversation.

I don't understand how CT processes scaling 1 year 1 month ago #18115

  • Roman
  • Roman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 103
  • Thank you received: 0
I need to develop for a 1024x768 display. I work on a computer with a resolution of 3840x2160. CT in the form properties shows DesignTimePPI=144, while on the target platform this value is 96. In Windows the element scaling is set to 150%, on the target platform it is 100%.

If I set the form size to 1024x768 in CT, then on the target platform the form does not fill the entire screen! Why?!

How to do it RIGHT?!

Please Log in or Create an account to join the conversation.

Last edit: by Roman.

I don't understand how CT processes scaling 1 year 1 month ago #18116

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1114
  • Thank you received: 165

I work on a computer with a resolution of 3840x2160. 



A real 4K monitor with native Res 3840x2160 is 40-43" inches big, Sir
In our LAB we have 2x  ProLite X4071UHSU-B1  



A Screen from real 4K monitor

 

So the problem start with Virtual 4k Screen.

CT normal button images are:
-16x16 pixels (image1), for scale 100%
-24x24 pixels (image1_150) x1.5, for scale 150%
-32x32 pixels (image1_200) x2.0, for scale 200%

Open folder C:\codetyphon\typhon\images\ide_images\
to see the used from TyphonIDE images.


 
PilotLogic Core Programmer
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..

I don't understand how CT processes scaling 1 year 1 month ago #18118

  • Roman
  • Roman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 103
  • Thank you received: 0
In this topic, I asked about how to configure CT in order to develop applications for a small display on a large display. You mixed up the topics - we weren't talking about icons here.
However, on MY display the icons are extremely small, and only with 150% scaling in Windows do their size become more or less acceptable. My display is 27 inches...
I am attaching two of MY screenshots, I don’t know why.

 

 
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Roman.

I don't understand how CT processes scaling 1 year 1 month ago #18119

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4537
  • Thank you received: 1115
<<My display is 27 inches>>

The negative res of a good 27 inches monitor is  2560 x 1440 with scale 100%

Did you try to set 2560 x 1440 to your monitor with scale 100%?

4K res on a 27 inches monitor is only for Games....
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

I don't understand how CT processes scaling 1 year 1 month ago #18121

  • Roman
  • Roman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 103
  • Thank you received: 0
I somehow adapted to the size of the icons, but I have a more serious problem:

 

Please tell me how to do it correctly so that the image sizes do not change when changing the resolution of the target monitor.
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Roman.

I don't understand how CT processes scaling 1 year 3 weeks ago #18127

  • Rain
  • Rain's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 71
  • Thank you received: 8
Does it help, when you set the property Form1.scaled := false;  ?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1