[Gambas-user] Gambas3 control components _Arrangement "incorrectly overridden"
Bruce Bruen
bbruen at ...2308...
Wed Sep 21 01:39:08 CEST 2011
On Tue, 2011-09-20 at 21:13 +0200, Benoît Minisini wrote:
> > Another migration problem. I'm not having a good day. :-(
> >
> > I don't know if this is a bug or whether I'm just not looking at the
> > code and/or the help correctly.
> >
> > I am migrating a bunch of specialised controls from gambas2 to gambas3.
> > Much of it is working wonderfully but this one has got me beat.
> >
> > The attached project has two specialised controls, a trivial example
> > called CBlueTextbox which works fine and one called ItemToolBar which
> > doesn't. Testing the controls fails with the dreaded "incorrectly
> > overridden" message, specifically "UserControl._Arrangement is
> > incorrectly overridden in class ItemToolBar".
> >
> > CBlueTextBox inherits directly from TextBox, whereas ItemToolbar
> > inherits from UserControl.
> >
> > I realise that the _Arrangement constant for the textbox is meaningless.
> > It's just there as an example. However I think it is needed in the
> > ItemToolbar.
> >
> > (To make the attached project "work", delete the ItemToolBar class.)
> >
> > regards and thanks in advance
> > Bruce
>
> You have to choose another name for "_Arrangement" in the ItemToolbar class.
> Is it a problem ?
>
Ah! I see (I think). If we are inheriting from UserControl then we
should not include the _Arrangement constant. This is not a problem.
thanks
Bruce
More information about the User
mailing list