You're right, it's not a constructor issue.
qx.ui.toolbar.RadioButton doesn't work as before: no text and no icon are
shown inside.
And it appears with a 1 pixel size when the height/width are set to auto.

Here is the code (this is a vertical toolbar):

                        var tb = qx.ui.toolbar;
                        var bots = {};
                        bots.det = new tb.RadioButton(null, 
'/img/menu/vista-det');
                        bots.det.set({
                                height  : 'auto'
                        });
                        bots.ico = new tb.RadioButton(null, 
'/img/menu/vista-ico');
                        bots.ico.set({
                                height  : 'auto'
                        });
                        bots.vista = new qx.ui.selection.RadioManager(null, [ 
bots.det, bots.ico
]);
                        var pVistas = new tb.Part();
                        pVistas.set({
                                height      : 'auto',
                                orientation : 'vertical'
                        });
                        pVistas.add(bots.det, bots.ico);
                        bots.nueVnt = new tb.CheckBox(null, 
'/img/menu/nue-vnt');
                        bots.nueVnt.set({
                                height  : 'auto',
                                toolTip : new qx.ui.popup.ToolTip(_("Abrir 
enlaces en una nueva
ventana"))
                        });
                        bots.nueVnt.addEventListener('changeChecked', this.esc, 
this);
                        bots.oculto = new tb.CheckBox(null, 
'/img/menu/ver-oculto');
                        bots.oculto.set({
                                height  : 'auto',
                                toolTip : new qx.ui.popup.ToolTip("Mostrar 
informacion sin interés para
el usuario final."),
                                display : desa
                        });
                        var bh = new qx.ui.layout.BoxLayout;
                        bh.set({
                                width           : 'auto',
                                height          : '100%',
                                orientation     : 'vertical',
                                backgroundColor : "button"
                        });
                        var p2 = new tb.Part();
                        p2.set({
                                height      : 'auto',
                                orientation : 'vertical'
                        });
                        p2.add(bots.nueVnt, bots.oculto, bots.xml);
                        bh.add(pVistas, p2);
                        return bh;


I'll try to create a working demo showing this problem.


Sebastian Werner wrote:
> 
> dperez schrieb:
>> Hi list,
>> 
>> What happens when a class doesn't define a constructor?
>> Does it inherit from its base class?
> 
> Yes, exactly this.
> 
>> 
>> I say it, because I don't see the constructor for class
>> qx.ui.toolbar.RadioButton
>> It used to have in version 0.6.6 a constructor where you could specify
>> the
>> text, and the icon.
>> I specify the icon, but no icon appears.
>> 
>> I think its constructor is missing.
> 
> The constructor should accept these parameters: vText, vIcon, vChecked
>   -- like defined in the toolbar/CheckBox class.
> 
> Sebastian
> 
>> 
>> Regards
>> David
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/qx.ui.toolbar.RadioButton-constructor-tf3920001.html#a11115678
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to