2008/10/9 Brad <[EMAIL PROTECTED]>:
>
> Hmmm... for some reason all my browsers on various machines had cached the
> 2.1.5 docs so I could not see the 2.2.0 docs (wondered why they weren't up
> :) I've rectified this now of course and will have a read.
>

I had the same problem while looking up the link for you. Luckily it
has been fixed by now ;-)

>
> OK, I think I get this but will need to look at WMenu's implementation as
> you suggest below to make sure. I'll post any questions I have here I guess,
> hopefully not many. So I don't necessarily have to implement a WMenu to
> acheive what I'm after but it may be the easiest way? The alternative would
> be to write something that implements the equivalent of setFromState(),
> setInternalPathEnabled(), and something to listen for the
> internalPathChanged signal? I'd say I'll use at least one WMenu anyway.
>

That is correct. It is allowed to have multiple listeners to the
internalPathChanged signal, so apart from the WMenu, you can implement
your own system. You probably don't want to inherit from WMenu or use
a WMenu as is, because WMenu is meant for - euh - menus.
Also look at the WAnchor::setRefInternalPath(). The best way to set
your internal path is through a user click on an WAnchor, because
these links will also work for users without javaScript and the google
search engine will follow them.

> > I recommend src/Wt/WMenu.C
>
> I'll take a look at this too. Am I crazy or is there no mention of
> setFromState in
> http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WMenu.html ? I can
> see the relevant code in the most recent CVS anyway so no matter.
>

setFromState is an internal implementation function of WMenu and is
therefore not documented, as you should never care about it when you
use a WMenu.

>
> Thanks Wim, I WILL keep you guys posted. I am serious about this, I am tired
> of programming in C++ and PHP, I want to use C++ for everything LOL.
>

Excellent.

Regards,
Wim.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to