Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Defining a left margin in grid columns
Message
From
01/05/1998 15:24:05
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00094982
Message ID:
00096373
Views:
24
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform