You're right -- it works fine in 4.08.
FWIW, somewhere between version 2.13 and version 3.19 the Base Class
row in the attributes window went away for custom controls and that
change led to the issue I was experiencing.
I like the changes in 4.08 (especially being able to subclass
again
and will need to upgrade.
Thanks!
--- In anthemion-devtools%40yahoogroups.com">anthemion-devtools
yahoogroups.com, Julian Smart <julian
...>
wrote:
>
> Hi,
>
> Unfortunately I can't reproduce this - here are the steps I just
took
> with DB 4.08:
>
> 1) create a new custom control definition, named JulianCtrl; no
further
> settings
> 2) created an instance of it under a sizer in a dialog; XRC at this
> point has class=JulianCtrl
> 3) changed the control's class name from JulianCtrl to MyJulianCtrl
> 5) clicked on the XRC tab and noted that it now has
class=JulianCtrl
> subclass=MyJulianCtrl
>
> Regards,
>
> Julian
>
> lostinmontana98 wrote:
> > I've been using version 2.13 for a while and just recently
upgraded to
> > 3.11. In the previous version when I added a custom control and
then
> > changed the class name, the generated XRC used the custom control
class
> > name for the "Class" attribute and the derived class name for
> > the "Subclass" attribute. In version 3.11 it no longer does this -
- it
> > just uses the derived class name for the "Class" attribute and
does not
> > specify a subclass attribute.
> >
> > This causes a problem now since using the subclass attribute
allowed me
> > to defined derived classes without having to define XML resource
> > handlers for each derived class. Each of my derived classes is
defined
> > with the DECLARE_DYNAMIC_CLASS macro and thus gets created
> > automatically as a result of processing the subclass attribute
during
> > XRC loading.
> >
> > Is there a setting in my custom control definitions that I need
to set
> > in order to have it use the custom control class name for
the "class"
> > attribute and the redefined/derived class name for the "subclass"
> > attribute?
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
>
>
> --
> Julian Smart, Anthemion Software Ltd.
> 28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
> www.anthemion.co.uk | +44 (0)131 229 5306
> Tools for writers: www.writerscafe.co.uk
> wxWidgets RAD: www.anthemion.co.uk/dialogblocks
>
.