Share via


WMEncoderApp.Visible

Windows Media Encoder SDK banner art

The Visible property specifies and retrieves the display state of the UI.

Syntax

bool = WMEncoderApp.Visible;
WMEncoderApp.Visible = bool;

Parameters

This property takes no parameters.

Property Value

A Boolean indicating whether the UI is enabled.

Remarks

You must make the UI visible before displaying any panels or windows.

Example Code

using WMEncoderLib;

try
{
// Create a WMEncoderApp object.
WMEncoderApp EncoderApp;
EncoderApp = new WMEncoderApp();

// Display the predefined user interface.
EncoderApp.Visible = true;

// Retrieve the user interface properties.
int lHeight;
int lWidth;
int lTop;
int lLeft;
bool bUILock;
object vSourceState;

// Retrieve the height and width, in pixels.
lHeight = EncoderApp.Height;
lWidth = EncoderApp.Width;

// Retrieve the top offset of the user interface.
lTop = EncoderApp.Top;
if (lTop <> 0) 
{
    lTop = 0;
}

// Retrieve the left offset of the user interface.
lLeft = EncoderApp.Left;
if (lLeft <> 0) 
{
    lLeft = 0;
}

// Determine whether the user interface is locked.
bUILock = EncoderApp.UILock;

// Display the sources panel.
EncoderApp.SetProperty(WMENCAPP_PROP_CLASS.WMENCAPP_PROP_USER, "View\Sources", true);

// Verify that the sources panel is displayed.
vSourceState = EncoderApp.GetProperty(WMENCAPP_PROP_CLASS.WMENCAPP_PROP_USER, "View\Sources");

EncoderApp.SaveProperties(WMENCAPP_PROP_CLASS.WMENCAPP_PROP_USER);
}

catch (Exception e)
{
     // TODO: Handle exceptions.
}

Requirements

Reference: Windows Media Encoder

Namespace: WMEncoderLib

Assembly: Interop.WMEncoderLib.dll

Library: WMEncoderLib.dll

See Also