cheerq / flexmdi

Automatically exported from code.google.com/p/flexmdi
0 stars 0 forks source link

Several Window Themes Customizable in CSS file #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Could you please change the MDIWindow and MDIManager to permit the
definition of several windows with different themes (Focus Theme and No
Focus Theme)?
With this the users will have the possibility to define different styles to
their windows.
I’ve difined 2 properties in the MDIWindow for the Focus theme and the
NoFocus theme definition:

public var mdiFocusSkin:String = 'mdiWindowFocus';
public var mdiNoFocusSkin:String = 'mdiWindowNoFocus';

In the MDIManager I’ve changed “executeDefaultBehavior” function to:

case MDIManagerEvent.WINDOW_FOCUS_START:
    mgrEvent.window.styleName = mgrEvent.window.mdiFocusSkin;
    mgrEvent.effect.play();
    break;

case MDIManagerEvent.WINDOW_FOCUS_END:
    mgrEvent.window.styleName =  mgrEvent.window.mdiNoFocusSkin;
    mgrEvent.effect.play();
    break;

This is working for me, probably there is a better way.

Thanks

Original issue reported on code.google.com by nelson.b...@gmail.com on 19 Sep 2007 at 4:35

GoogleCodeExporter commented 8 years ago

Original comment by ben.clin...@gmail.com on 19 Sep 2007 at 10:36

GoogleCodeExporter commented 8 years ago
implement in css 

Original comment by brian.jo...@gmail.com on 20 Sep 2007 at 5:23

GoogleCodeExporter commented 8 years ago
Properties added to MDIWindow: focusStyleName and noFocusStyleName. Default to
.mdiWindowFocus and .mdiWindowNoFocus, so setting those styles will affect all
windows by default.

Original comment by ben.clin...@gmail.com on 23 Sep 2007 at 6:54