Rack and visual controls

Rack and visual controls. More...

Functions

 openrack (filename)
 Open a rack.

 saverack (filename)
 Save actual rack.

 hidemain ()
 Hide main (editor) window.

 showmain ()
 Show the main (editor) window.

 capturerack (filename, quality)
 Save rack as jpeg image on disk.

 loadimage (control, filename)
 Load an image in an image control on rack.

 ddown_settext (control, text)
 Set items of a drop down control on rack.

 ddown_gettext (control)
 Get selected item of a drop down control.

 setvisible (control, state)
 Set visibility of a control on rack window.


Detailed Description

Rack and visual controls.


Function Documentation

capturerack filename  ,
quality 
 

Save rack as jpeg image on disk.

Save visible rack in filename file in jpeg format. quality must be a number between 1 and 100. For good quality (but bigger jpeg files) specify a big quality factor.

Parameters:
filename File name to save.
quality Quality of jpeg image
Example:
capturerack("snapshot.jpg",75)

ddown_gettext control   ) 
 

Get selected item of a drop down control.

Return selected item of a drop down control on rack window.

Parameters:
control Drop down control name
text Items (formatted like "item1"&chr(13)&chr10&"item2"&chr(13)&chr10 )
Example:
item=ddown_gettext("ddown1")

ddown_settext control  ,
text 
 

Set items of a drop down control on rack.

Set items of a drop down control on rack. Items must be specified as text string, delimited with CRLF sequences.

Parameters:
control Drop down control name
text Items (formatted like "item1"&chr(13)&chr10&"item2"&chr(13)&chr10 )
Example:
ddown_settext("ddown1","item1"&chr(13)&chr10&"item2"&chr(13)&chr10)

hidemain  ) 
 

Hide main (editor) window.

Hide main (editor) window. Not needed in the standalone.

loadimage control  ,
filename 
 

Load an image in an image control on rack.

Loads an image into an image component on the rack.

Parameters:
control Image control name
filename File containing the image on disk, in bmp format.

openrack filename   ) 
 

Open a rack.

Opens the rack contained in filename.
Filename must be a valid one, created with Rack Designer software. This is a simply to use tool to create nice virtual instruments.
This rack may contains controls accessible from script, as designed.

Parameters:
filename File to be opened, containing a valid rack. Use complete path if not in the executable folder.
Example:
openrack("nicerack.res")

saverack filename   ) 
 

Save actual rack.

Save actual rack, including control states and values.

Parameters:
filename Where to save the rack.

setvisible control  ,
state 
 

Set visibility of a control on rack window.

Set visibility of a control on rack window, acording to state parameter, 0-invisible, 1-visible.

Parameters:
control Control name
state Required state

showmain  ) 
 

Show the main (editor) window.

Show the main (editor) window. Disabled if Easy Control run standalone.


Generated on Wed Dec 3 10:18:42 2003 for Easy Control