Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Amending Commandgroup Class
Message
From
26/07/1999 16:13:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/07/1999 15:24:01
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00246273
Message ID:
00246313
Views:
21
>Created my own commandgroup class following advice from the UT collective.
>
>Recently learned how to amend an existing form by 'using' the scx file and replacing all relevant class and classloc entries.
>
>Made amendments to the command button class. Now want to amend my original commandgroup by having it use my amended command button.
>
>Assumed it would be similar to what I did with the form. scx, but only shows 3 records. Although it has references to the existing buttons, there is no obvious place to adjust the class references to them.
>
>If I use the class browser I can see that they are still using the vfp base class but can't see any way to change that.
>
>If I try adding one of my new buttons - with a view to changing them piecemeal - I get told I can't add an object to another if it isn't a container object (which I thought the commandgroup was)
>
>If I try creating a new class 'based on' a commandgroup - it seems that the 'base' is still the vfp base and not my new class library and I can't see an obvious option in Tools/Options to change that.
>
>So How?
>
>Harry
Harry,
"Baseclass" is always VFP's. You can only change class. With a commandgroup you would only able to change existing (or added via buttoncount) buttons' properties add/edit methods-events. It's not a container type that you could add other controls (subclassed commandbuttons). If you want to make it instead of a commandgroup use a container and add buttons to it (see txtbtns in wizstyle.vcx). But with a commandgroup you could use setall for properties and use commandgroup events-methods for global methods-events (ie: no click code to buttons but edit commandgroup's click instead).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform