WMEncoderApp.Top

Windows Media Encoder SDK banner art

The Top property specifies and retrieves the offset of the UI, in pixels, from the top of the screen.

Syntax

WMEncoderApp.Top = Long
Long = WMEncoderApp.Top

Parameters

This property takes no parameters.

Property Value

A Long containing the pixel offset for the top of the UI.

Example Code

' Create a WMEncoderApp object.
Dim EncoderApp As WMEncoderApp
Set EncoderApp = New WMEncoderApp

' Display the predefined user interface.
EncoderApp.Visible = True

' Retrieve the user interface properties.
Dim lHeight As Long
Dim lWidth As Long
Dim lTop As Long
Dim lLeft As Long
Dim bUILock As Boolean
Dim vSourceState As Variant

' 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 Then
    lTop = 0
End If

' Retrieve the left offset of the user interface.
lLeft = EncoderApp.Left
If lLeft <> 0 Then
    lLeft = 0
End If

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

' Display the sources panel.
EncoderApp.SetProperty WMENCAPP_PROP_USER, "View\Sources", True

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

EncoderApp.SaveProperties WMENCAPP_PROP_USER

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also