Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gdiplus, object height text
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Gdiplus, object height text
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01473620
Message ID:
01473620
Vues:
127
Have dbi ctlist on a form. Will hold comments with a user name and date seperating comments.

Lets say I have the following string:
---

Now is the time for all good men to come to the aid of their county.

Due 100
Due 200
Due 300

Again now is the time for all good men to come to the aid of their country.....

---

Using GDIPlus I can determine the total height of this string according to the width and height of my dbi ctlist object that is not a problem. My problem is, what if the height is only high enough to display down to and including "Due 200". How do I find where to cut off the current string, making that section into one ctlist subtext item, then the starting point for the next section of wording for the next row. In other words I need to be able to break up comments of various manual formatting (carriage returns, line feeds, tabs) etc into perfectly sized rows. CTList won't do this for me

Not really sure how to word this question.
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.

Riddley Walker
Répondre
Fil
Voir

Click here to load this message in the networking platform