Movie Maker Timeline Control

ChangeTextClip2 Method

Description

Change the text clip on the timeline. (for VB6 or another development tools does not support color data type)

Syntax

Public Function ChangeTextClip2 ( _
   ByVal trackIndex as integer, _
   ByVal clipIndex as integer, _
   ByVal text as string, _
   ByVal clipStartTime as float, _
   ByVal clipStopTime as float, _
   ByVal font as integer, _
   ByVal x as integer, _
   ByVal y as integer, _
   ByVal color as Color
) As Integer

 

Parameter

trackIndex
   0 - Transition Track
   1 - Video 1 Track
   2 - Video 2 Track
   3 - Image Track
   4 - Effect Track
   5 - Audio 1 Track
   6 - Audio 2 Track
   7 - Text Track

clipindex
    the index of text clip for changed

text
    the string of the text

clipStartTime
    Time in seconds when the clip will start on the timeline

clipStopTime
    Time in seconds when the clip will end on the timeline.

font
    the font handle.
 
x
    Specifies the logical x-coordinate of the starting point of the text.

y
    Specifies the logical y-coordinate of the starting point of the text.

color
    the color of the text.



Return Value

Return 1 if successful.
Return -1 , the string of the text is empty.
Return -3 , the clipStartTime >= clipStopTime.
Return -4 , the track not found.
Return -5 , the unknown error.
Return -6 , the text clip not found.

Example

Visual Basic Syntax
Dim hFnt As Long
iCurrentClipIndex= TimelineControl1.ChangeTextClip2(7,"This is my text", 0, 30, hFnt, 100, 50, 255,0,0)