Hey Torsten,

2009/3/6 Torsten Schulz <[email protected]>:
> I've two questions:

They seem familiar :-)

> 1) I'll add Images instead of text in WPushButton, but the only way I've
> found now is to use Stylesheets. Is it possible to use WImage in
> WPushButton?

No, not reliably across browsers. Why not use a WImage instead of
pushbutton in that case (or go for stylesheets if that is acceptible
for you)?

If the CSS-way is fine, you can use cssDecorationStyle() if you do not
want to do it using a static external stylesheet, but programmatically
from your code.

> 2) I would use&uarr; in Text of WPushButton. If I write it, I don't see
> the arrow but the text&uarr;. If I use WString::tr("&uarr;"), I see the
> Arrow - but left and right I see the ??. In documentation I've found
>  >Whenever the value of the string is needed, the key is used for a
> lookup in the application message resource bundles taking into account
> the current application locale. If the key cannot be resolved, its value
> is set to '??key??'.<  But how I'm able to change it?

You should define the value in a message resource bundle.
See for example simpleChat.C en simplechat.xml in the simple chat example.

It is so that WPushButton will assume "plain" text by default, unless
your text comes from a message resource bundle, in which case it
assumes XHTML and thus special characters are possible. The
alternative is that we expand the WPushButton API with the same
TextFormat options as WText.

Regards,
koen

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to