Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defining a left margin in grid columns
Message
De
01/05/1998 15:24:05
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00094982
Message ID:
00096373
Vues:
25
>Dragan,
>
>That doesn't work as the "LEFT" property is Read-Only for a
>TextBox control contained within a column !
>
>Michel.

Whew ;(. Next try:

with thisgrid
for i=1 to .columncount
.columns[i].text1.controlsource="([ ]+"+.columns[i].text1.controlsource+")"
endfor
endwith

... privided you have only character fields, else we'd need some spaces preceding the InputMask property instead. What I tried to accomplish here is to add a couple of spaces before each textbox. And... this will probably turn your grid to be read-only. Hey, what about setting just the inputmask instead:

with thisgrid
for i=1 to .columncount
.columns[i].text1.inputmask=" "+repl("x", len(eval(.columns[i].text1.controlsource)))
.columns[i].text1.function="R"
endfor
endwith

This would sure need some adjustment for numericals, logicals and maybe some other data, but... could work, and be not just read-only this time.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform