Hi Fred
Column and Header are available as .prg baseed class only. ::(
The problem with the Class property depends on my changed Name property. If I change or delete the definition of Name, Class property is correct. Within a .vcx based class, the change of Name is disabled, so Class must be correct.
The Main problem is to get a column named like if no Memberclass is used. If you create a column with out Memberclass you get Column1 as Name. If you Create with Memberclass MyCol you get MyCol1 as Name. Some (strange old ugly) code relies on the use of Column
n so I need to keep the name.
But for now this for philosophical use only. I've stopped the use of memberclass for my grids and add the columns and headers using NewObject as I have done in versions prior 8.0. This gives me the control I need and all the props are as suspected.
Thank you for your help
Agnes
>Any reason you don't do your MemberClasses as visual classes? It seems to get the Class property correct when it comes from a .VCX instead of a .PRG.
>
>Here's an interesting note. If you set the MemberClassLibrary property of the grid/pageframe in the Init of the form or of the grid/pageframe Init to the .PRG that contains your class definitions, it sets the Class property correctly.
>
>>Good Morning Fred,
>>
>>thank you for pointing that out.
>>
>>It looks like there is something strange in the use of the
name and the
class properties within an class definition. It would be nice to have the name propery free to preselect the name of objects.
>>
>>So the problem now is:
>>
>>How can I use a Member Class in a way that the class property shows the right class and the name of the object created is the same as it would be without of the use of memberclass?
>>
>>The only way I see is to ignore member class and add the members with ADDOBJECT as I have done before.
>>
>>
>>Agnes
>>
>>>
>>>You did see this note in the Help for Member Classes, right?
>>>
>>>"Caution Do not change the Name property for a member class in a program (.prg) -based class definition at design time. Doing so can result in generating the message, "Class definition name is not found.""
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.
OffThere is no place like [::1]