## mml

window

OnInit

    Called after the window is created. - Usage: Window.OnInit();

OnClick

    Called when the window is clicked on. - Usage: Window.OnClick();

OnDoubleClick

    Called when the window is doubleclicked. - Usage: Window.OnDoubleClick();

OnMouseOver

    Called when the mouse is moved over the window. - Usage: Window.OnMouseOver();

OnMouseExit

    Called when the mouse is moved off of the window. - Usage: Window.OnMouseExit();

OnMouseTopOver

    Called when the mouse is moved directly over the window (With no other windows in between). - Usage: Window.OnMouseTopOver();

OnMouseTopExit

    Called when the mouse is no longer directly over the window (eg, maybe another window is above it). - Usage: Window.OnMouseTopExit();

OnDestroy

    Called before the window is destroyed. - Usage: Window.OnDestroy();

OnIntro

    Called when the intro animation is requested. - Usage: Window.OnIntro(time);
           time            How long the animation should take, in milliseconds.

OnExtro

    Called when the extro animation is requested. - Usage: Window.OnExtro(time);
           time            How long the animation should take, in milliseconds.

OnEnable

    Called when the window is enabled. - Usage: Window.OnEnable();

OnDisable

    Called when the window is disabled. - Usage: Window.OnDisable();

OnLocationChange

    Called when the window is moved. - Usage: Window.OnLocationChange();

OnSizeChange

    Called when the window is resized. - Usage: Window.OnSizeChange();

OnDockSlave

    Called when the window is docked as a slave. - Usage: Window.OnDockSlave(dockpoint);
           dockpoint       The name of the dockpoint we docked on

OnDockMaster

    Called when the window is docked as a master. - Usage: Window.OnDockMaster(dockpoint);
           dockpoint       The name of the dockpoint we docked on

OnUndockSlave

    Called when the window is undocked as a slave. - Usage: Window.OnUndockSlave(dockpoint);
           dockpoint       The name of the dockpoint we undocked from

OnUndockMaster

    Called when the window is undocked as a master. - Usage: Window.OnUndockMaster(dockpoint);
           dockpoint       The name of the dockpoint we undocked from

OnLeftButtonUp

    Called when the left mouse button is released in this window. - Usage: Window.OnLeftButtonUp();

OnRightButtonUp

    Called when the right mouse button is released in this window. - Usage: Window.OnRightButtonUp();

OnMiddleButtonUp

    Called when the middle mouse button is released in this window. - Usage: Window.OnMiddleButtonUp();

OnLeftButtonDown

    Called when the left mouse button is pressed in this window. - Usage: Window.OnLeftButtonDown();

OnRightButtonDown

    Called when the right mouse button is pressed in this window. - Usage: Window.OnRightButtonDown();

OnMiddleButtonDown

    Called when the middle mouse button is pressed in this window. - Usage: Window.OnMiddleButtonDown();

OnDropFiles

    Called when files are dropped. - Usage: Window.OnDropFiles();

OnActivate

    Called when the window is activated (in focus). - Usage: Window.OnActivate();

OnDeactivate

    Called when another window gets activated (putting this window out of focus). - Usage: Window.OnDeactivate();

OnAlwaysOnTopChange

    Called when the window changes its always-on-top state. - Usage: Window.OnAlwaysOnTopChange(bOnTop);
           bOnTop          true if always-on-top is enabled, false otherwise

OnScreenChange

    Called when the screen format changes. - Usage: Window.OnScreenChange();

spinbutton

OnPosQueryChange

    Called to check whether the control's knob position may be changed. - Usage: Spinner.OnPosQueryChange();
           Return value:   true to allow change, false to disallow it

OnPosChange

    Called when this control's knob position is changed. - Usage: Spinner.OnPosChange(int, real);
           int             The new int position of the spinner
           real            The new real position of the spinner

OnPosFinalized

    Called when this control's knob position is done being fiddled with (eg, when the user lets go of the mouse button). - Usage: Spinner.OnPosFinalized();

slider

OnPosQueryChange

    Called to check whether the control's slider position may be changed. - Usage: Slider.OnPosQueryChange();
           Return value:   true to allow change, false to disallow it

OnPosChange

    Called when this control's slider position is changed. - Usage: Slider.OnPosChange(position);
           position        The new position, in an array {int, real}

OnPosFinalized

    Called when this control's slider position is done being fiddled with (eg, when the user lets go of the mouse button). - Usage: Slider.OnPosFinalized();

OnHoverPosChange

    Called when the mouse hovers over the slider, so that the hint may be updated. - Usage: Slider.OnHoverPosChange(position);
           position        The position, in an array {int, real},the spinner would go to if the user clicked

picker

OnItemSelected

    Called when an item is selected. - Usage: Picker.OnItemSelected(index);
           index           Which item was selected

selectionlist

OnItemSelected

    Called when an item is selected. - Usage: List.OnItemSelected(index);
           index           Which item was selected

EditControl

OnEditSend

    Called when return is pressed in an edit window. - Usage: (null).OnEditSend();

framewin

OnSkinChange

    Called when the current skin changes. - Usage: FrameWindow.OnSkinChange();

playlistwin

OnTrackDoubleClick

    This is called when an item is doubleclicked. - Usage: PlaylistWindow.OnTrackDoubleClick();

viswin

OnVisualChanged

    This is called when the window's current Visual is changed. - Usage: VisualWindow.OnVisualChanged();