Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gdiplus, object height text
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Gdiplus, object height text
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01473620
Message ID:
01473620
Views:
128
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
Reply
Map
View

Click here to load this message in the networking platform