Thanks, but I'm still a little lost.  How can I access a window
outside of where it is defined?  For example: I can't access the code
that creates the widget, but I have access to a javascript event,
let's see a button click.  What is the code I would need to put into a
function that responds to a button click?

I tried MainWindow.setIcon("megaIcon.JPG");  MainWindow being of
course the name of the window object I want to change.  I figure I
have to do something to get access to the window again, I just don't
know what that code is.

On 5/30/07, Alex Back <[EMAIL PROTECTED]> wrote:
> Hi Dan,
>
> FrozenDice wrote:
> > I'm trying to change the icon of of the Window widget by clicking a
> > button.  Say the user clicks Button1 the icon would change to a closed
> > padlock, if they clicked Button1 again it would change to an open
> > padlock.  I know that I can set the property when I make it, I just
> > can't figure how to access it after it's been rendered like this.
> There was an open bug report for this problem. Using the method "setIcon"
> doesn't had an effect.
> I've just fixed this problem in the trunk. Please update to the current trunk
> version.
>
> Then you can use the "setIcon" method in your button eventhandler to change
> the icon.
>
> cheers,
>   Alex
>
> -------------------------------------------------------------------------
> 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
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

-------------------------------------------------------------------------
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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to