forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Text attributes in %th

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
wahorger



Joined: 13 Oct 2014
Posts: 1054
Location: Morrison, CO, USA

PostPosted: Thu Aug 04, 2022 3:37 pm    Post subject: Text attributes in %th Reply with quote

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
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7371
Location: Salford, UK

PostPosted: Thu Aug 04, 2022 5:16 pm    Post subject: Reply with quote

See cwplus.enh item 346. Also search for %th in this file.
Back to top
View user's profile Send private message AIM Address
wahorger



Joined: 13 Oct 2014
Posts: 1054
Location: Morrison, CO, USA

PostPosted: Thu Aug 04, 2022 10:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7371
Location: Salford, UK

PostPosted: Fri Aug 05, 2022 6:31 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
wahorger



Joined: 13 Oct 2014
Posts: 1054
Location: Morrison, CO, USA

PostPosted: Fri Aug 05, 2022 1:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7371
Location: Salford, UK

PostPosted: Mon Aug 08, 2022 7:28 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
wahorger



Joined: 13 Oct 2014
Posts: 1054
Location: Morrison, CO, USA

PostPosted: Mon Aug 08, 2022 2:12 pm    Post subject: Reply with quote

Many thanks, Paul!

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

Bill
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group