Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overriding the Toolbar Factory Method
Message
 
À
07/02/2005 12:28:36
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brésil
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00984483
Message ID:
00984555
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform