>
> You can create a function:
> void TrimStringToFitCell(char *string, int cell_width_pixels)
> {
> if (FntCharsWidth(string, StrLen(string)) > cell_width_pixels)
> {
> cell_width_pixels -= 6;
> do
> {
> string[StrLen(string) - 1] = 0;
> } while (FntCharsWidth(string, StrLen(string)) > cell_width_pixels);
> StrCat(string, "...");
> }
> }
>
You should rather use FntCharsInWidth
Eric.
- Table, displaying long stri... Brian O'Grady
- RE: Table, displaying long stri... Marc Campbell
- Re: Table, displaying long stri... Danny Epstein
- Re: Table, displaying long stri... Eric VERGNAUD
- Re: Table, displaying long stri... Brian O'Grady
- Re: Table, displaying long stri... Danny Epstein
- Re: Table, displaying long stri... Douglas I. Anderson
