Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Underlining grid column text??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00043066
Message ID:
00043097
Vues:
38
>>>I'm trying to simulate HTML-style links in vfp in a grid column. But I'm having trouble getting the text underlining to trim to the table field length, when the field has variable length strings. Right now the underlining is sized to the longest text string in the entire column, so the short strings look funny. Any ideas on how to get underline to trim to exact string size?
>>
>>magic marker?
>>
>>are you underlining everything in a given column?
>>
>yes...
>
>>if the field is set to a given length, the spaces will be underlined [left(field,15) on a 10 char entry leaves 5 spaces to be underlined]. if based strictly on the field (no trim, left, etc.), only the chars in the field are underlined w/ this code.
>>
>The cursor field is c(12), the longest possible string. But the entire column is underlined to length 12. The underline lengths appear slightly different because blanks don't get the same amount of underlining, I guess, but all cells less than len 12 have underlining longer than field, probably all 12.
>
>There's no mask or format, just ordinary text. The cursor's strings show the correct length, usually less than 12. I use column dynamicfontunderline after I fill the grid's recordsource from query, though I get the same result if I set underline .T. at design. I've tried with sparse t/f also, still same result. ???

try alltrim of controlsource for the column(s). that seems to work w/ the dynamicfontunderline...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform