Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How could I do the following using gridhighlighter 3.8?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00671880
Message ID:
00672314
Vues:
14
>Hi,
>How could I do the following with gridhighlighter 3.8?
>
>1. I want the left most column of grid to be READONLY.
>2. I want the left most column's control to be container.
>3. I want highlight the row except column 1.
>4. I want to active header and cell to be coloured except column 1.
>
>I have try to do some ways to achieve the above, but not sucsess. Hmm.. i think is better to get your suggestion before I show my "failed" code.
>
>Thank you

You should use gridhighlighter1.onPostHighlight_row method:
***  gridhighlighter1.onPostSetDynamicColor method
lchost = THIS.chostname
THIS.PARENT.&lchost..Column1.DYNAMICBACKCOLOR = '[]' && do not highlight column1
***  gridhighlighter1.onPostHighlight_row method
LOCAL lchost
lchost = THIS.chostname
WITH THIS.PARENT.&lchost
	IF .ACTIVECOLUMN = 1 && or whatever number needed
		.Column1.text1.BACKCOLOR = .Column1.BACKCOLOR
		.Column1.header1.FONTBOLD = .F.
		.Column1.header1.ResetToDefault("BackColor")
* or .column1.header1.BackColor = < desired color here > 
	ENDIF
ENDWITH
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform