Do something like this
var postitObserver = {
currentPostit: null,
onFocus: function(eventName, win) {
if (currentPostit)
currentPostit.changeClassName("unfocused_classname");
win.changeClassName("focused_classname") ;
currentPostit = win;
$("win_content_" + win.getId()).focus();
}
}
Windows.addObserver(postitObserver);
I will add a focusClassName in the next release. If I have time this
week I will try to create a public svn repository. It will be easier
if you want to test dev release.
Seb
On Mar 4, 2007, at 6:28 AM, Edward Wang wrote:
Thanks Andrew,
How would you change the skin when using onFocus? Can you give me
an example?
Edward
On 3/1/07, Andrew Ryzhokhin < [EMAIL PROTECTED]> wrote:
Greetings Edward,
It would be great if the window is active (you can do things in the
window,
IE press buttons, click things, etc) the color of the window
changes, like a
windows XP does.
I made a workaround:
1. Create two different skins.
2. Change skin on the onFocus event
But, I found a bug in function "changeClassName":
If you change skin with name "someSkin" to skin with name
"someSkin_inactiv" the resizing area will be missing.
--
Andrew Ryzhokhin
www.ardas.dp.ua
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com