Hello,

replying to myself ...

partially solved. I get the bar with the link to the home page.

But not the menu options are stimm missing.

This line seems to do it:
    setTheme (new WBootstrapTheme (this));

regards
  Petric

Am Montag, 30. Juni 2014, 10:40:21 schrieb Petric Frank:
> Hello,
> 
> i am in the first steps exploring Wt. Here i try to use WNavigation bar.
> The code looks like this:
> ------------------ cut --------------------
> #include <Wt/WApplication>
> #include <Wt/WMenu>
> #include <Wt/WNavigationBar>
> #include <Wt/WPopupMenu>
> 
> using namespace Wt;
> 
> class NavApplication : public WApplication
> {
> public:
>   NavApplication(const WEnvironment& env);
> };
> 
> NavApplication::NavApplication (const WEnvironment& env)
> 
> : WApplication(env)
> 
> {
>   WContainerWidget *container = new WContainerWidget(root ());
>   root ()->addWidget (container);
> 
>   WNavigationBar *navigation = new WNavigationBar (container);
>   navigation->setResponsive(true);
>    navigation->setTitle ("Test", "http://dummy.loc";);
> 
>   WMenu *menu = new WPopupMenu;
>   navigation->addMenu(menu);
> 
>   menu->addItem ("File");
>   menu->addItem ("Edit");
> }
> 
> WApplication *createApplication(const WEnvironment& env)
> {
>   return new NavApplication(env);
> }
> 
> int main(int argc, char **argv)
> {
>   return WRun(argc, argv, &createApplication);
> }
> ------------------ cut --------------------
> 
> But the output (using embedded http-server) looks loke the attached screen
> shot.
> 
> I expeced a navigation bar like seen in
>    http://www.webtoolkit.eu/widgets/navigation/navigation-bar
> 
> with the menu options File and Edit.
> 
> Environment:
>   OS: Linux
>   Wt 3.3.3
>   gcc 4.7.3
>   Browser: Firefox, Konqueror
> 
> What am i missing ?
> 
> kind regards
>   Petic

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to