Farid hello,
I set to the background image, I went to define a new class (Vek)
decorator in the file
"web/qx08sdk/framework/source/class/qx/theme/modern/Decorator.js" to
set the property with my new background image
- snip --
"main-vek"
(
decorator: qx.ui.decoration.Background,
style:
(
BackgroundImage: "custom / icons / sumo.jpg"
BackgroundRepeat: "no-repeat"
)
),
"main":
(
decorator: qx.ui.decoration.Uniform,
- snip --
later in the file in the same directory Appaerence, I called the
designer created, so you have to put this in the class "root":
- snip --
"root":
(
style: function (states)
(
(return
backgroundColor: "background-application"
Decorator: "main-vek"
TextColor: "text-label"
font: "default"
);
)
),
- snip --
then after just place the files in direcotory "/
web/qx08sdk/custom/source/resource/custom/icons" and after work.
Clearly if you switch between the themes, Modern and Classic ..
Classic for the theme will be the only class decorator root classic
theme.
I hope I have understood your question.
Hello
Date: Wed, 21 Jan 2009 12:20:39 +0100
From: [email protected]
To: [email protected]
Subject: Re: [qooxdoo-devel] "backgroundImage" property gone in 0.8?
Thanks for the quick answer.
but ...
I think this will set the image displayed in the widget (similar to setSource).
what I need is the background behind the image.
in 0.7 I could set this with setBackgroundImage.
I need this because the source image I want to display needs a special
background image to distinguish it from the rest of the GUI.
Farid
On Wed, Jan 21, 2009 at 12:03 PM, Marco Vecchi <[email protected]> wrote:
You pass directly when create the object.
as in this example in a api reference of qooxdoo
var image = new qx.ui.basic.Image("icon/32/actions/format-justify-left.png");
Date: Wed, 21 Jan 2009 11:45:32 +0100
From: [email protected]
To: [email protected]
Subject: [qooxdoo-devel] "backgroundImage" property gone in 0.8?
Hi all,
the setBackgroundImage member of the image widget is not available in 0.8 it
seems.
when I try:
var resultView = new qx.ui.basic.Image;
resultView.setBackgroundImage("myapp/image/blockbg.png");
I get an error message in firebug which says that resultView has no member
"setBackgroundImage".
in 0.7 this code worked fine.
I can't find it in the online 0.8 api reference on qooxdoo.org either.
How can I set the background image of a qx.ui.basic.Image widget in qx 0.8.1?
Farid
check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
More than messages
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel