23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

actxcontrol<br />

2actxcontrol<br />

Purpose Create an ActiveX control in a figure window.<br />

Syntax h =actxcontrol (progid [, position [, handle ...<br />

[,callback |{event1 eventhandler1; ...<br />

event2 eventhandler2; …}]]])<br />

Arguments progid<br />

String that is the name of the control to create. The control vendor provides this<br />

string.<br />

2-34<br />

position<br />

Position vector containing the x and y location and the xsize and ysize of the<br />

control, expressed in pixel units as [x y xsize ysize]. Defaults to [20 20 60<br />

60].<br />

handle<br />

Handle Graphics handle of the figure window in which the control is to be<br />

created. If the control should be invisible, use the handle of an invisible figure<br />

window. Defaults to gcf.<br />

callback<br />

Name of an M-function that accepts a variable number of arguments. This<br />

function will be called whenever the control triggers an event. Each argument<br />

is converted to a <strong>MATLAB</strong> string; the first argument is always a string that<br />

represents the numerical value of the event that was triggered. These<br />

numerical values are defined by the control. (See the section, “Writing Event<br />

Handlers” in <strong>MATLAB</strong> External Interfaces, for more information on handling<br />

control events.)<br />

event<br />

Triggered event specified by either number or name.<br />

eventhandler<br />

Name of an M-function that accepts a variable number of arguments. This<br />

function will be called whenever the control triggers the event associated with<br />

it. The first argument is the activex object, the second number represents the<br />

numerical value of the event that was triggered. Note that the second number<br />

is not converted to a string as is the case in the “callback” M-file style. These<br />

values are defined by the control. See “Writing Event Handlers” in <strong>MATLAB</strong><br />

External Interfaces for more information on handling control events.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!