Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A doofus question or two 2

Status
Not open for further replies.

BobMorris

Programmer
Jul 6, 2001
32
US
Just started supporting a VFP app, and it appears I've forgotten a few things

Grids. How do I add a check box to a grid column, then make it active? The check box is there, it's just not active. I have, in the property inspector, for that column

lDone (the column, named after field name)
Header1
Text1
Check1

All I get is the ability gto type T/F into the column, no check box. What am I missing?

Also, how do I delete (using the above example), Check1 from a column ( and put one in the wrong column accidentally)

Any help appreciated!

 
To have it use check1 instead of text1, set CurrentControl to "check1".

To delete a check box from a column, select the check box in the Properties window, then click the title bar of your form, then press DEL.
 
Hi,

1. Leave the Text1 controls as it is in the Grid. If needed recreate the Grid .. 'coz that way you are sure nothing is hidden anywhere by mistake.

2. Put the name for columns in all as normal build up of grid.

3. In the init event of the Column5. put the code to initialize the control....

WITH THIS
.VISIBLE = .F.
.ADDOBJECT('CheckBox1','CheckBox')
.CURRENTCONTROL = 'CheckBox1'
.REMOVEOBJECT('Text1')
.SPARSE = .f.
.VISIBLE = .T.
ENDWIT

Then put code if you need any other property to be set such as RightToLeft, Caption etc for the CheckBox..

ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Thanks to those who replied! This is a great website, I got the answers in about 30 minutes...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top