Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behaviour when subclassing grid
Message
De
27/03/2003 21:23:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00770945
Message ID:
00771152
Vues:
17
Well, Michelle.

It seems to be that Grid subclasses don't take some color properties from their parent class. (VFP 6)

Take a look at http://support.microsoft.com/default.aspx?scid=kb;en-us;191997
BUG: BackColor/ForeColor of Grid Not Carried Over to Subclass



>Funny coincidence... I've just now been trying to figure out why I can't set the back colour in my grid subclass. If I figure it out, I'll let you know. :)
>
>Michelle
>
>
>>Hi.
>>
>>I have been finding some troubles when subclassing a grid.
>>
>>I create a Classlib which contains a basic VFP Grid, with custom backcolor in Column1 and custom messages in some methods in order to test:
>>
>>MyGrid.DblClick contains: Wait window "DoubleClick"
>>MyGrid.Clcik contains: Wait window "Click"
>>MyGrid.AfterRowColChange contains: Wait window "AfterRC"
>>
>>
>>When I drop the class from the classlib into the form, the backcolor property is lost.
>>When I run the form, AfterRowColChange works ok, but the others don't display the custom message (Click and DoubleClick).
>>
>>
>>Any comments ?
>>
>>Thanks
>>
>>Juan C.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform