FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour AutoSize oSay
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
AutoSize oSay
Posted: Wed Dec 12, 2007 09:27 PM

Is there an autosize property in the say object?
Thanks in advance
Otto

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: AutoSize oSay
Posted: Wed Dec 12, 2007 10:33 PM

If you omit the SIZE clause then the SAY object is autosize.

EMG

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
AutoSize oSay
Posted: Thu Dec 13, 2007 07:00 AM

How can I do this with workshop?
regards,
Otto

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
AutoSize oSay
Posted: Thu Dec 13, 2007 12:58 PM

You have to calculate the width of the text using GetTextWidth() function and then to use the Move() method to resize the SAY object.

EMG

Continue the discussion