Hey Felipe,
2012/2/12 Felipe Zanchet Grazziotin <fel...@starbyte.net>
> Hello all,
>
> my first post here, excuse me in advance. I'm new to wt, but already
> understand how much potential is has.
>
> As a first try I'm moving a simple PHP-based website to Wt, and failed to
> understand how to build a photo gallery (visualization only at first). My
> goal is to have a WBorderLayout as base, having:
>
> * North: show current gallery name
> * West / East : previous, next photo navigation (optional, haven't tried
> yet)
> * South: a menu having all photos (thumbnails) from current gallery, click
> on any will update current photo being shown on Center.
>
> What I'm missing is that WMenu (or WMenuItem for that purpose) requires a
> WString as information to web page.
>
> Is there any workaround on this? Should I rewrite it to accept rendering
> an WImage as first parameter? Or any other tip?
>
You may easily achieve this functionality by overriding either
WMenuItem::createItemWidget() and WMenuItem::updateItemWidget().
See
http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WMenuItem.html#a5dd1286e97b110b621e00e02e58a15d2
Hint: you need to create WImage in YouCustomItem::createItemWidget().
--
// Dmitriy.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest