ObjectBitMap
Posted by Mohammad Rahhal, Last modified by Fouad Faraj Allah on 04 July 2019 01:41 PM

Syntax

Public Function ObjectBitMap(chart_ID As Long, win As Long, name As String, price1 As Double, time1 As String, fileName As String, text As String) As Boolean

Description

This function is used to add Bit map photo to chart with the specified name.

Parameters

Key Description
chart_Id Chart identifier, 0 is the current chart, the value of type Long
win Chart subwindow, the value of type Long.
name Object key, the value of type String.
price1 The price coordinate of the point, the value of type Double.
time1 The time coordinate of the anchor, value of type String.
fileName The photo name and must be inside this path (C:\user\"your pc name"\AppData\Roming\vertexFX Client Terminals\"client"\VTL10\image),value of type String.
text Object text at the photo,  the value of type String.

Return value

Returns true if the object is created. Otherwise returns false. In order to get an error, call GetLastError() function.

Return value

Returns a substring.

Sample

'Image must be a bitmap image

'Path of the image : ..\VTL10\Images

Sub Main()

If not ObjectBitmap(0,0,"bitmap2",1.3599,"13/01/2012 00:00:00","Smiley.bmp","Pic2") Then

  AlertMessage ErrorDescription(GetLastError())

Else

 AlertMessage "Done"

End If

End Sub

See Also


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions