hi, Markus
Will your button react to a parameter respective to a specific website? if
not, you can use WText and xml, like following:

WText *link_txt = new WText(WString::tr("link_xml"), aContainer);

the link_xml can be defined in the config xml, like following

<message id="link_xml">
    <a href="http://sf.net";>SourceForge</a>
</message>

that is ok?

Regards
zhimin

2009/6/22 [email protected] <[email protected]>

> Hi,
>
> currently I have some trouble using WPushButton class, which is used
> inside a WContainerWidget derived class. So the exercise is to redirect
> to an external website, when the WPushButton got clicked. How do I solve
> this problem?
> I tried to use WAnchor but it did not work. The redirect method only
> exists in WApplication (and derived classes) which isnt. Any proposal?
> Thank you very much for you help in the past,
>
> Best regards
>
> Markus
>
>
>
>
>
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge
> conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
> $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
>
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to