Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » Text scaling in U++
Text scaling in U++ [message #60767] Fri, 06 September 2024 12:28 Go to next message
koldo is currently offline  koldo
Messages: 3404
Registered: August 2008
Senior Veteran
Greetings to all

I'm getting older, and I'm more and more sensitive to the problems of people with poor eyesight.

Do you know if it is possible to change the text scaling, in the code, without depending on the scaling used by the operating system desktop?


Best regards
Iñaki
Re: Text scaling in U++ [message #60768 is a reply to message #60767] Fri, 06 September 2024 14:39 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1085
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Koldo,

You can use CTRL+MOUSWHEEL_UP while holding cursor on code editor, it should make the font of code editor bigger. Alternativly, you can try CTRL++. To make it smaller the combination is opposite. CTRL+MOUSWEEL_DOWN and CTRL+-.

Klugier


U++ - one framework to rule them all.
Re: Text scaling in U++ [message #60769 is a reply to message #60767] Fri, 06 September 2024 14:58 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14162
Registered: November 2005
Ultimate Member
koldo wrote on Fri, 06 September 2024 12:28
Greetings to all

I'm getting older, and I'm more and more sensitive to the problems of people with poor eyesight.

Do you know if it is possible to change the text scaling, in the code, without depending on the scaling used by the operating system desktop?


GUI_APP_MAIN {
	SetStdFont(Arial(40));
	PromptOK("Is this fine?");
}


Note: What we do without using SetStdFont is that we read that font from OS - that among other issues means we read "scaled" value. Then all layouts are scaled on ratio between standard font and "design font". Then if font is bigger then certain threshold, UHD icons become active (either dedicated or synthetised).
Re: Text scaling in U++ [message #60770 is a reply to message #60769] Fri, 06 September 2024 21:41 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3404
Registered: August 2008
Senior Veteran
Thank you Mirek, thank you Klugier

I wanted what Mirek has proposed, to scale all the application.
That's simple excellent!
It is so simple to scale it all.
Of course, I will have to polish some details, but the foundation is solid.

index.php?t=getfile&id=6960&private=0


Best regards
Iñaki
Re: Text scaling in U++ [message #60771 is a reply to message #60770] Sat, 07 September 2024 13:40 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3404
Registered: August 2008
Senior Veteran
Hi Mirek

Could it be possible to do this in the middle of the program, for example, after pushing a button?


Best regards
Iñaki
Re: Text scaling in U++ [message #60772 is a reply to message #60771] Sat, 07 September 2024 23:22 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14162
Registered: November 2005
Ultimate Member
koldo wrote on Sat, 07 September 2024 13:40
Hi Mirek

Could it be possible to do this in the middle of the program, for example, after pushing a button?


U++ is not really well designed for that, sorry. I think you would at minimum need to destruct all GUI windows, then change the font, invoke Reskin and reopen everything.

Mirek
Re: Text scaling in U++ [message #60779 is a reply to message #60772] Sun, 08 September 2024 20:34 Go to previous message
koldo is currently offline  koldo
Messages: 3404
Registered: August 2008
Senior Veteran
No problem, thank you!

The mere fact of having this feature indicates that U++ is miles ahead of the libraries used by some powerful and expensive programs.


Best regards
Iñaki
Previous Topic: Colored text in Button
Goto Forum:
  


Current Time: Sat Dec 14 13:24:33 CET 2024

Total time taken to generate the page: 0.03555 seconds