Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messageboxes
Message
De
06/10/1998 16:02:01
 
 
À
06/10/1998 15:43:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00142123
Message ID:
00144356
Vues:
36
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform