Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messageboxes
Message
From
06/10/1998 16:02:01
 
 
To
06/10/1998 15:43:10
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00142123
Message ID:
00144356
Views:
35
>Ummm... I wasn't too clear in the first reply. I don't mind using the number of characters instead of pixel width - chopping it into lines with MLine() has the advantage of respecting the embedded CRs in the message string - and I chop it first, and then measure the lengths in pixels. It also doesn't matter if one line is longer than another - it's not a right justified text, it's just a replacement for a message box. I've just had this problem that I used a read only editbox to display the message, and it's size was pretty (ugly?) unpredictable.
>
>BTW, I've made it in the meantime, using an array of labels, and it works (and looks) much nicer - margins are easier to calculate, works fine with any font name/size combination I tried it with. I'll post it here in Files as soon as I translate comments into English and supply some demonstration prg. And... as soon as I learn how's the new way of uploading actually working.

Sounds like a workable solution. I'll be looking for it in Files...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform