Create a button with an icon on the configuration dialog panel.

Appeal:

ac_request("create_iconbutton", string icon_filename, int start_x, int start_y, int width, int height, string tooltip, string name_cpp);

или

ac_request("create_iconbutton", string icon_filename, int start_x, int start_y, int width, int height, string tooltip, string name_cpp, int iarg, double darg, string sarg);

Here:

icon_filename is the file name of the icon to be drawn on the button (from the tsimages directory);

start_x, start_y are the coordinates of the upper-left corner of the button on the dialog panel;

width, height - width and height of the button;

tooltip - a tooltip that will appear when the mouse hovers over the button;

name_cpp - the name of the program file (from the tsprg directory).

iarg, darg and sarg are an integer, a floating point number and a string - parameters that will be passed to the program module when running on this button. To get the parameters in the called module, you can use the run_cpp("get_args") command... :


int iArg1;

double dArg2;

string sArg3;

run_cpp("get_args", iArg1, dArg2, sArg3);