| View previous topic :: View next topic |
| Author |
Message |
WhiteCloud
Joined: 19 Jun 2004 Posts: 68
|
Posted: Thu Sep 02, 2004 11:47 pm Post subject: Show which fonts have True Type spacing between letters |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Sep 03, 2004 2:26 am Post subject: |
|
|
| 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 |
|
 |
WhiteCloud
Joined: 19 Jun 2004 Posts: 68
|
Posted: Fri Sep 03, 2004 3:37 am Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Sep 03, 2004 9:05 am Post subject: |
|
|
| 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 |
|
 |
WhiteCloud
Joined: 19 Jun 2004 Posts: 68
|
Posted: Fri Sep 03, 2004 11:32 pm Post subject: |
|
|
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.  _________________ AHK = Hella fun |
|
| Back to top |
|
 |
|