ScenesElementGetByPos Method (MComposerClass)
X coordinate of the pointer
Y coordinate of the pointer
"1" is to return a hidden element and "0" to not return a hidden element
element of the scene
Gets element of active scene by its screen position.
Syntax
Public Overridable Sub ScenesElementGetByPos( _
   ByVal _dblPosX As Double, _
   ByVal _dblPosY As Double, _
   ByVal _bHiddenReturn As Integer, _
   ByRef _ppElement As MElement _
) 
public virtual void ScenesElementGetByPos( 
   double _dblPosX,
   double _dblPosY,
   int _bHiddenReturn,
   out MElement _ppElement
)
public procedure ScenesElementGetByPos( 
    _dblPosX: Double;
    _dblPosY: Double;
    _bHiddenReturn: Integer;
   Out  _ppElement: MElement
); virtual; 
public: virtual void ScenesElementGetByPos( 
   double _dblPosX,
   double _dblPosY,
   int _bHiddenReturn,
   [PARAMFLAG::Out] MElement* _ppElement
) 

Parameters

_dblPosX
X coordinate of the pointer
_dblPosY
Y coordinate of the pointer
_bHiddenReturn
"1" is to return a hidden element and "0" to not return a hidden element
_ppElement
element of the scene
Example
'initialize a mixer
Dim m_objMixer As New MMixerClass()
m_objMixer.ObjectStart(Nothing)
m_objMixer.FilePlayStart()
'add stream to the mixer
Dim pItem As MItem
m_objMixer.StreamsAdd("", Nothing, "C:\myFile.wmv", "", pItem, 1.0)
''dblX' and 'dblY' are position of mouse pointer
Dim pElement As MElement
m_objMixer.ScenesElementGetByPos(dblX, dblY, 0, pElement)
//initialize a mixer
MMixerClass m_objMixer = new MMixerClass();
m_objMixer.ObjectStart(null);
m_objMixer.FilePlayStart();
//add stream to the mixer
MItem pItem;
m_objMixer.StreamsAdd("", null, @"C:\myFile.wmv", "", out pItem, 1.00);
//'dblX' and 'dblY' are position of mouse pointer
MElement pElement;
m_objMixer.ScenesElementGetByPos(dblX, dblY, 0, out pElement);
var
myItem: MItem;
myMixer: MMixer;
myFile: IMfile;
myObject: IMObject;
myStreams: IMstreams;
myScenes: IMScenes;
myElement: IMElement;
begin
//initialize a mixer
myMixer:= CreateComObject(CLASS_MMixer) as MMixer;
myStreams:= myMixer as IMStreams;
myFile:= myMixer as IMFile;
myObject:= myMixer as IMobject;
myObject.ObjectStart(nil);
myFile.FilePlayStart();
//add stream to the mixer
myStreams.StreamsAdd('', nil, 'C:\myFile.wmv', '', myItem, 2.0);
myScenes := myMixer as IMScenes;
myScenes.ScenesElementGetByPos(50.0, 100.0, 0, myElement); //here you can use mouse pointer position instead the 1st and 2nd parameters.
end;
See Also

Reference

MComposerClass Class
MComposerClass Members