On 02/12/2012 03:56 PM, Norbert Schröder wrote:
Hi Dvora,
the open/close icons in a tree are part of its appearance theme.
To emphasize what Norbert wrote: The triangles are part of the *Tree*'s
appearance, not of the *TreeFolder*'s.
T.
You can change them by modifying "Appearance.js" in your application's
"theme" subfolder. E.g.:
qx.Theme.define("myApplication.theme.Appearance",
{
extend : qx.theme.modern.Appearance,
appearances :
{
"tree-item/open" :
{
include : "image",
style : function(states)
{
var icon;
if (states.selected && states.opened)
{
icon = "path/to/my-open-selected.png";
}
else if (states.selected && !states.opened)
{
icon = "path/to/my-closed-selected.png";
}
else if (states.opened)
{
icon = "path/to/my-open.png";
}
else
{
icon = "path/to/my-closed.png";
}
return {
padding : [0, 5, 0, 2],
source : icon
};
}
},
}
}
I hope this helps. Additionally, you should pay some attention to [1]
and [2].
Cheers,
Norbert
[1] http://manual.qooxdoo.org/1.6.x/pages/gui_toolkit/ui_theming.html
[2]
http://manual.qooxdoo.org/1.6.x/pages/gui_toolkit/ui_custom_themes.html
Am 12.02.2012 13:02, schrieb Debora Lopez:
Hi,
In the demobrowser, under widget - Tree, the Desktop TreeFolder has 2
icons showing.
One is a triangle (facing down or to the right, depending if folder
is open or closed) and the second is user-desktop.png.
The latter appears because of the setIcon statement.
Could somebody please explain to me how the triangle appears?
I have used setIcon and setIconOpened statements - which allows one
or the other icon, but never two icons.
Thanks in advance!
Dvora
------------------------------------------------------------------------------
Virtualization& Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel