Hello all,
I want to access instrument panel controls (bitmaplist, bargraph,labels..) in VBS script and be able to modify many things (font, colour, position ).
How can I do this?
thanks
VB script and instrument panel
Re: VB script and instrument panel
Here's a short example on how to access panel objects in a VBS macro:
Press F1 in a panel window to open the Instruments Panel Help. Under "Reference -> Instruments Panel Object Model" you can find a list of available objects and their properties, which you can access in a macro.
Code: Select all
Dim panel, obj
Set panel = Documents("MyPanel.ipf").ActiveWindow.Object
Set obj = panel.ActiveScene.Controls("Label1")
obj.Left = 100
obj.Font.Color = vbRed