System.Gadget.Flyout.onShow Event

Event fired when the gadget Flyout is shown.

Syntax

retVal = System.Gadget.Flyout.onShow(
  handler
)

Parameters

  • handler
    The name of the function to call when the event is fired.

Remarks

This event updates the Flyout show property.

Examples

The following example demonstrates how to listen for the onHide and onShow events of the gadget Flyout.

var oGadgetDocument = System.Gadget.document;
System.Gadget.Flyout.onShow = showFlyout;
System.Gadget.Flyout.onHide = hideFlyout;

// --------------------------------------------------------------------
// Display the Flyout state in the gadget.
// --------------------------------------------------------------------
function showFlyout()
{
    oGadgetDocument.getElementById("strFlyoutFeedback").innerText = "Flyout visible.";
}

// --------------------------------------------------------------------
// Hide the flyout and display the Flyout state in the gadget.
// --------------------------------------------------------------------
function hideFlyout()
{
    oGadgetDocument.getElementById("strFlyoutFeedback").innerText = "Flyout hidden.";
    System.Gadget.Flyout.show = false;
}

Requirements

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
IDL Sidebar.idl
DLL Sidebar.Exe version 1.00 or later

See Also

System.Gadget.Flyout

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK