Author |
Message |
11/02/2011 10:46:08
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi,
I use the "ValidValuesBinding.addValidValue(java.lang.String value, java.lang.String text, java.lang.String valuecomment, java.lang.String image)" method to decorate some combox items with images (but without valuecomment). This particular feature is not documented in the demo workplace (workpage "Image in front of text") but I was able to use it.
However, it was a little bit tricky: I had to set withvaluecomment to true.
This causes that the text of each combox item becomes bold, what I don't really want in this case.
May be we need an attribute "withimage" to uncouple or may be simply display always the image if set?
Kind regards, Daniel
|
|
|
11/02/2011 10:59:31
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi Daniel.
there is a fabulous demo "Double Line Item" in the demo workplace, that shows the usage with image... ;-)
The issue is: when rendering images then typcially the images need a certain size to be meaningful - so we by default open the "double line mode". In this the first line is drawn in bold the seoncd one in normal font...
The whole combobox looks much nicer if you find some second text to add a comment, so that a second text line is output.
Can you send a screenshot of your exampple?
Thanks! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
11/02/2011 11:38:51
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn,
I think that images 16x16 may be meaningful in some cases, e.g. country flags. Also, in the "Double Line Item" workpage, the delete.png (16x16) seems too enlarged to me.
I enclose examples with "famfamfam" flags 16x16 that I would like to use.
Regards, Daniel
|
Filename |
flags_comment.png |
Download
|
Description |
double line |
Filesize |
11 Kbytes
|
Downloaded: |
420 time(s) |
|
Filename |
flags_nocomment.png |
Download
|
Description |
Single line |
Filesize |
7 Kbytes
|
Downloaded: |
393 time(s) |
|
|
|
11/02/2011 11:42:54
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...OK, will update the bold output... - really does not look too nice...
Thanks +
Regards!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|