Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 08 September 2020 07:22 AM


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


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


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.


'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())


 AlertMessage "Done"

End If

End Sub

See Also

Back to VTL Client Script Index

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
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