AutoHotkey Community

It is currently May 27th, 2012, 5:56 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: September 2nd, 2004, 11:47 pm 
Offline

Joined: June 19th, 2004, 9:02 pm
Posts: 68
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2004, 2:26 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2004, 3:37 am 
Offline

Joined: June 19th, 2004, 9:02 pm
Posts: 68
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2004, 9:05 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2004, 11:32 pm 
Offline

Joined: June 19th, 2004, 9:02 pm
Posts: 68
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group