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

Color on grid cell

Status
Not open for further replies.

webmonger

Programmer
Mar 13, 2004
66
AU
I am placing the textbox on field one ( leftmost ) in a grid and wish to make the 'button' more visible. Is it possible to use something like

this.Set("dynamicbackcolor"RGB(192,192,192)")

At present this has no effect?


Code:
DEFINE CLASS gstxt1 AS  TextBox

	Height = 17
	ReadOnly =.f.
        this.Set("dynamicbackcolor"RGB(192,192,192)")

	PROCEDURE Click
	EDIT  NEXT 1
	REPLACE up_dated with .t.
ENDPROC

ENDDEFINE

Thanks
 
HI

Since you are making a class, there is no need for use of DynamicBackColor. Also the syntax is wrong.

Simple code..

Code:
DEFINE CLASS gstxt1 AS  TextBox

    Height = 17
    ReadOnly =.f.
    BackColor = RGB(192,192,192)

    PROCEDURE Click
       EDIT  NEXT 1
       REPLACE up_dated with .t.
    ENDPROC

ENDDEFINE

Make sure this is the Active control of the column in which you place this.. OR else, the regular Text1 will be in control and this class will not be visible.

____________________________________________
ramani - (Subramanian.G) :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top