View previous topic :: View next topic |
Author |
Message |
wahorger
Joined: 13 Oct 2014 Posts: 1225 Location: Morrison, CO, USA
|
Posted: Thu Aug 04, 2022 3:37 pm Post subject: Text attributes in %th |
|
|
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. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8011 Location: Salford, UK
|
Posted: Thu Aug 04, 2022 5:16 pm Post subject: |
|
|
See cwplus.enh item 346. Also search for %th in this file. |
|
Back to top |
|
|
wahorger
Joined: 13 Oct 2014 Posts: 1225 Location: Morrison, CO, USA
|
Posted: Thu Aug 04, 2022 10:28 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8011 Location: Salford, UK
|
Posted: Fri Aug 05, 2022 6:31 am Post subject: |
|
|
Code: | 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. |
|
Back to top |
|
|
wahorger
Joined: 13 Oct 2014 Posts: 1225 Location: Morrison, CO, USA
|
Posted: Fri Aug 05, 2022 1:21 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8011 Location: Salford, UK
|
Posted: Mon Aug 08, 2022 7:28 am Post subject: |
|
|
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...
Code: | 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 |
|
|
Back to top |
|
|
wahorger
Joined: 13 Oct 2014 Posts: 1225 Location: Morrison, CO, USA
|
Posted: Mon Aug 08, 2022 2:12 pm Post subject: |
|
|
Many thanks, Paul!
You all do a great job providing the features that useful to ourselves and our customers!
Bill |
|
Back to top |
|
|
|