Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overriding the Toolbar Factory Method
Message
From
07/02/2005 15:29:24
 
 
To
07/02/2005 12:28:36
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brazil
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00984483
Message ID:
00984555
Views:
27
Hi,
To be precise, it should be "Bar", not "bar"
public override void CreateNavToolBar()
 {this.NavToolBar = (mmNavigationToolBar) new MyNavToolbar();}
After doing this change, I managed to get the new toolbar in the main form. But setting "DisplayNavigationToolbar" to the ActiveForm did only show the default toolbar. What is missing?


>Hi Kevin,
>
>I think there is a mistake in MM .Net documentation under "Creating Your Own Custom Navigation Toolbar (Walkthrough)" topic.
>
>In "Step 4: Overriding the Toolbar Factory Method" we see this
>
>
>    public override mmNavigationToolbar CreateNavigationToolbar()
>    {
>        return new MyCustomNavToolBar();
>    }
>
>
>But I think the correct code would be:
>
>
>    public override void CreateNavToolbar()
>    {
>        this.NavToolBar = (mmNavigationToolbar) new MyCustomNavToolBar();
>    }
>
>
>Regards,
>
>Eugenio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform