Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with memberclass
Message
De
09/05/2003 15:17:22
 
 
À
09/05/2003 08:31:54
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00786711
Message ID:
00786915
Vues:
26
>Hi All,
>
>I found a new 'feature' using the new memberclass property with a grid.
>
>Scenario:
>
>A prg based column class like
>
>DEFINE CLASS myColumn AS Column
>somnew prop = ''
>...
>enddef
>
>
>I set the memberclass and memberclasslibrary props to the new class.
>At runntime I set columncount from 0 to whatever I need.
>
>The class is correctly instantieded with one little problem
>
>The "CLASS" property of the column shows 'COLUMN' instead of 'myColumn'.
>
>
>This is normaly not a big deal - but I have a variety of columns classes.
>
>Sometimes I like to change those columns with something like.
>
>
>SETALL("DynamicBackColor",'','myClass')
>SETALL("DynamicBackColor",Value,'myOtherClass')
>
>
>For now I switch back to the grid.NEWOBJECT method to add columns to my grid.
>But this not what I have dreamed off ...
>
>O.k. this might be special to me because I allways handle my grids the like and people which never changed a grid's column class with versions below 8.0 may run in the same problem from the other end when 'CLASS' would have the correct value. This why I guess this is a 'feature'. But where I get the right classname? Sometimes I use it for debug informations ... ::(
>
>Agnes


What does the ParentClass property show?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform