Previous Thread
Next Thread
Print Thread
GUI text actual width #26433 15 Aug 12 03:12 PM
Joined: Sep 2009
Posts: 45
P
Pascal Melot Offline OP
Member
OP Offline
Member
P
Joined: Sep 2009
Posts: 45
I'm looking for the function that returns the actual size (# of fixed pitch columns)of a GUI (proportional font) text.
I remember having read something about this one day, but i can't find it on the online reference help.
Thank you everyone, supporting me in my pilgrimage from AMOS to Ashell.

Re: GUI text actual width #26434 15 Aug 12 03:28 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
Check out the AUIWIN.BP in [908,28]. It illustrates several uses of XCALL AUI, AUI_WINDOW, including one that calculates the size of a text string (in pixels and millicolumn/millirow units).

(Admittedly, this is hard to find in the documentation, if at all.)

If you don't have the program, you can download it from http://www.microsabio.net/dist/soslib/

Re: GUI text actual width #26435 15 Aug 12 03:35 PM
Joined: Sep 2009
Posts: 45
P
Pascal Melot Offline OP
Member
OP Offline
Member
P
Joined: Sep 2009
Posts: 45
Jack, i missed to mention I'm talking about screen columns, is it the same way ?

Re: GUI text actual width #26436 15 Aug 12 03:47 PM
Joined: Sep 2009
Posts: 45
P
Pascal Melot Offline OP
Member
OP Offline
Member
P
Joined: Sep 2009
Posts: 45
Jack, forget my previous post, yours was right on target (would one say "hit the nail" ? - sorry for my approximate english, it plays tricks on me)

Re: GUI text actual width #26437 15 Aug 12 04:47 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
Oui, c'est ça: To "hit the nail on the head" is to address the issue precisely.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3