Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with memberclass
Message
From
09/05/2003 08:31:54
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problem with memberclass
Miscellaneous
Thread ID:
00786711
Message ID:
00786711
Views:
56
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

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Next
Reply
Map
View

Click here to load this message in the networking platform