Hi Larry,
> I have several windows which a derived from my own ModalWindow class which
> itself is derived from qx.ui.window.Window. I can change the text with, for
> example:
>
> this.setCaption("Please choose a day to fix:");
>
> How can I change the font size?
>
The preferred way is to use use the appearance system
<http://qooxdoo.org/documentation/0.8/ui_appearance> and redefine the
appearance key "window/title":
"window/title" :
{
style : function(states)
{
return {
alignY : "middle",
font : "bold", // <-- the font
marginLeft : 6,
marginRight : 12
};
}
},
This will change the font for all windows. If you only want to change
the font for this specific window you can use:
win.getChildControl("title").setFont(font);
Font is either a font name defined in the font theme
(qx.theme.modern.Font) or an instance of qx.bom.Font
<http://demo.qooxdoo.org/current/apiviewer/#qx.bom.Font>.
Best Fabian
--
Fabian Jakobs
JavaScript Framework Developer
1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Telefon: +49 721 91374-6784
[email protected]
Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel