Antonio and Boris,

You're right, a close button on a WDialog would make sense. I've
created a feature request:
http://redmine.webtoolkit.eu/issues/983

In the meantime,  you can set CSS style for the icon to
PointingHandCursor (WCssDecorationStyle::setCursor), and possibly add
some CSS that displays an alternative icon while hovering (that's
probably how we'll implement it internally in Wt)

BR,
Wim.


2011/9/8 Antonio Mancina <[email protected]>:
> On 09/05/2011 01:10 PM, Wim Dumon wrote:
>> I would use WDialog::titleBar() and add an icon to it with a clicked()
>> handler that closes the dialog.
>>
>> BR,
>> Wim.
>
> Thanks for your advise.
>
> Maybe, even better, it would be to use the close icon as the icon of
> a standard button: using the icon directly is actually not sufficient
> to give the idea of a clickable thing (when passing over the title bar,
> the pointer of my linux google chrome becomes a dragging hand).
>
> I second Boris proposal, it would be great if there were a standard
> way to have that button (ext dialogs have it already, but I'd rather
> not introduce such a dependency).
>
> Thanks,
> Antonio
>
> ------------------------------------------------------------------------------
> Doing More with Less: The Next Generation Virtual Desktop
> What are the key obstacles that have prevented many mid-market businesses
> from deploying virtual desktops?   How do next-generation virtual desktops
> provide companies an easier-to-deploy, easier-to-manage and more affordable
> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to