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 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user