Hi Farid Hmm, strange. My mails seem to appear on the list with a big delay lately.
The proposal of Marco isn't bad and not too complicated i guess. You just create a decorator definition and a custom appearance using this decorator. Then you just apply the new appearance to your image using setAppearance(). Of course this is rather tedious if you have lots of different backgrounds. Otherwise it's rather simple and straightforward imho. - Roman Farid Elyahyaoui wrote: > thanks for you suggestion. > > I'm currently trying this method out but it seems rather complex. > I just want to set the background image for two image widgets. I have dozens > of other image widgets in my application which should not get this > background. > It was so easy in 0.7. > Is this the only method to set the backgroundimage? > to the core team: do you have any suggestions about this? > > Farid > > On Wed, Jan 21, 2009 at 12:40 PM, Marco Vecchi <[email protected] > <mailto:[email protected]>> wrote: > > 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] <mailto:[email protected]> > To: [email protected] > <mailto:[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] <mailto:[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] <mailto:[email protected]> > To: [email protected] > <mailto:[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 > <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] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > ------------------------------------------------------------------------ > check out the rest of the Windows Live™. More than mail–Windows > Live™ goes way beyond your inbox. More than messages > <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] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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
