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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid problem

Status
Not open for further replies.

DannC

Programmer
Apr 5, 2001
75
RO
Hi, I have a grid with 4 columns and on the 3 column I do in the Init Method a .removeObject() .addObject("cmdConflict","classConflict")

ClassConflict is a commandbutton baseclass with has a property cPicture wich sets the picture of the button. My problem is that i can't set this picture right. For example if i had in my bound table values like (on rows)
.t.,.f.,.t.,.f. in the field conflict all the cmdConflict pictures are those for .t. (a checkmark) otherwise are a X. How can i set those picture to match with the values from the table.

Thanks
 
HI

I hope you have followed the pattern... in the init events as given below...

WITH THIS
.VISIBLE = .F.
.addObject("cmdConflict","classConflict")
.CURRENTCONTROL = 'cmdConflict'
.REMOVEOBJECT('Text1')
.SPARSE = .f.
.VISIBLE = .T.
ENDWIT

WITH THIS.cmdConflict
.CAPTION = "MyCaption"
** ETC ETC OTHER PROPERTIES
ENDWITH

The visible (set to .t. after the createobject, even if that was not set as .t. beforehand)and sparse properties are important.

Hope this helps :) 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 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top