Silverfrost Forums

Welcome to our forums

Text attributes in %th

4 Aug 2022 2:37 #29220

Is there a way to alter the size and/or font of the %th help? As I age (and my customers as well!), I'm finding a little bump in text size helpful. Colors are helpful also for those who have a color perception deficiency (I provide for that for certain controls).

Are any of these %th attributes alterable?

I'd be fine with setting this all up prior to first window creation, as I do with other ClearWin+ attributes.

As an FYI, I use the %he attributes to make menu help stand out. The font, size, color, and bold attribute the user can specify based on their vision requirements.

4 Aug 2022 4:16 #29222

See cwplus.enh item 346. Also search for %th in this file.

4 Aug 2022 9:28 #29223

So far as I can tell, nothing in the cwplus.enh specifies anything about font/color/size.

I'll poke around to see what I can do on font/size/color.

Thanks for the reminder about the .enh file(s). There is a lot of good stuff in there!

Bill

5 Aug 2022 5:31 #29225
winapp
program main
 i = winio@('%?mn[Menu Item[Sub-Item]][This is a sub-item]&', 'continue')
 i = winio@('%?bt[This is a button][|*This is bold|This is helpful]&') 
 i = winio@('%th[ms_style]&',1) 
 i = winio@('%`sb') 
end program main

If this is not adequate then I might be able to provide the means to set the font.

5 Aug 2022 12:21 #29229

Paul, this is helpful and I'll be able to use this technique. Thank you!

I also tried the balloon form, and both the default and balloon form really do show up better than regular when the controls in the window get really 'busy'.

Other attributes would still be useful. Useful to me would be to adjust the font size up, perhaps by a factor (like %ts). That said, it's not high priority!

Bill

8 Aug 2022 6:28 #29242

A new option has been added for the next release of the DLLs in the form %th[scaling=1.2]. The default scaling is 1.0. The sample will take the form...

winapp
program main
 i = winio@('%?mn[Menu Item[Sub-Item]][This is a sub-item]&', 'continue')
 i = winio@('%?bt[This is a button][|*This is bold|This is helpful]&') 
 i = winio@('%th[scaling=1.2]&',1)
 i = winio@('%`sb') 
end program main
8 Aug 2022 1:12 #29245

Many thanks, Paul!

You all do a great job providing the features that useful to ourselves and our customers!

Bill

Please login to reply.