FLexecButton FLTK:Other FLexecButton FLexecButton A FLTK widget opcode that creates a button that executes a command. Description Plugin opcode in widgets. This opcode is part of the plugin repository and has to be installed separately. These FLTK widgets do not work on the Mac. The plugin repository can be found here: https://github.com/csound/plugins A FLTK widget opcode that creates a button that executes a command. Useful for opening up HTML documentation as About text or to start a separate program from an FLTK widget interface. Warning Because any command can be executed, the user is advised to be very careful when using this opcode and when running orchestras by others using this opcode. Syntax ihandle FLexecButton "command", iwidth, iheight, ix, iy Initialization ihandle -- a handle value (an integer number) that unequivocally references a corresponding widget. This is used by other opcodes that modify a widget's properties (see Modifying FLTK Widget Appearance). It is automatically output by FLexecButton. command -- a double-quoted string containing a command to execute. Notice that with FLexecButton, the default text for the button is "About" and it is necessary to call the FLsetText opcode to change the text of the button. iwidth -- width of widget. iheight -- height of widget. ix -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels). iy -- vertical position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels). Examples Here is an example of the FLexecButton opcode. It uses the file FLexecButton.csd. Example of the FLexecButton opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See Also FLbutton, FLbox, FLbutBank, FLprintk, FLprintk2, FLvalue Credits Author: &namesteven; Example by: Jonathan Murphy New in version 5.05