Hi Claus,
The RadioGroupBox applies the icon value to its "legend" child control,
which is a qx.ui.form.RadioButton. Doing so replaces the regular radio
button image and breaks the theming so that states (hovered, checked,
disabled asf.) are no longer visualized.
If you want a RadioGroupBox widget with both an icon and the normal
radio button, you'll have to create your own. The implementation is
pretty simple so it shouldn't be a huge task.
Regards,
Daniel
Claus Straube schrieb:
> Hi all,
>
> I've tried to get the RadioGroupBox working with a icon, but was not
> successful...
>
> this code doesn't show the radio button:
> --snip--
> var box = new qx.ui.groupbox.RadioGroupBox("test",
> "icon/16/apps/internet-web-browser.png");
> box.setLayout(new qx.ui.layout.Grid().set({spacing: 5}));
>
> // Document is the application root
> var doc = this.getRoot();
>
> // Add button to document at fixed coordinates
> doc.add(box,
> {
> left : 100,
> top : 50
> });
> --snip--
>
> this one does:
> --snip--
> var box = new qx.ui.groupbox.RadioGroupBox("test");
> box.setLayout(new qx.ui.layout.Grid().set({spacing: 5}));
>
> // Document is the application root
> var doc = this.getRoot();
>
> // Add button to document at fixed coordinates
> doc.add(box,
> {
> left : 100,
> top : 50
> });
> --snip--
>
> The api docs [1] are saying, that it should possible to create a
> RadioGroupBox WITH icon:
> 'RadioGroupBox(String legend?, String icon?)'
>
> Is there any issue with this component? Thanks in advance!
>
> Best regards - Claus
>
> [1]
> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.groupbox.RadioGroupBox
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel