AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Show which fonts have True Type spacing between letters

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
WhiteCloud



Joined: 19 Jun 2004
Posts: 68

PostPosted: Thu Sep 02, 2004 11:47 pm    Post subject: Show which fonts have True Type spacing between letters Reply with quote

I currently use msgbox to display the results of a query in 2 columns. The problem is the 2nd column doesn't line up vertically. Since the spacing between letters in msgbox depends on the letters it's too hard to count letters and add/subtract the right number of spaces in between. That wouldn't even be perfect, i'd have to use a `t I think. Are any of the fonts in the "font table" in the help file not true type?

BTW it'd be cool to be able to make columns in the new GUI features eventually.

Thanks
_________________
AHK = Hella fun
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Sep 03, 2004 2:26 am    Post subject: Reply with quote

In both MsgBox and InputBox, you can use literal tabs (or `t) to line up multiple columns. This will probably also work in Progress, SplashImage, and the future GUI windows.
Back to top
View user's profile Send private message Send e-mail
WhiteCloud



Joined: 19 Jun 2004
Posts: 68

PostPosted: Fri Sep 03, 2004 3:37 am    Post subject: Reply with quote

yes but the problem is i don't know how much space the data in the column(s) on the left are going to take up. The columns being displayed are known during run time after a query is entered. I have a version with tabs in it but some lines have too many tabs and others too few even though the same # of characters are on the left sometimes. The big letters like "M" take up too much space and push the tab over too far and vice versa with the small letters like "I". I really don't feel like figuring out how many pixels each character takes up and having the program add them up so it knows if it's going to tab too far over or tab too little.
_________________
AHK = Hella fun
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Sep 03, 2004 9:05 am    Post subject: Reply with quote

I see what you mean. There is a feature called EM_SETTABSTOPS, but it seems to only apply to Edit controls, so it wouldn't work on a MsgBox or InputBox. Perhaps when the GUI feature comes out, there can be a feature to set the tab stops within an edit control so that results can be reliably displayed in columns. I've added this to the list though it probably won't be in the initial release.
Back to top
View user's profile Send private message Send e-mail
WhiteCloud



Joined: 19 Jun 2004
Posts: 68

PostPosted: Fri Sep 03, 2004 11:32 pm    Post subject: Reply with quote

I'll probably do some sort of multiple splashtext windows side by side. One for each column. I've been so busy I haven't been taking advantage of the latest new features yet. Smile
_________________
AHK = Hella fun
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group