12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Text PropertiesCreateFcnstringCallback routine executed during object creation. This property defines acallback routine that executes when <strong>MATLAB</strong> creates a text object. You mustdefine this property as a default value for text. For example, the statement,set(0,'DefaultTextCreateFcn',...'set(gcf,''Pointer'',’'crosshair'')')defines a default value on the root level that sets the figure Pointer propertyto a crosshair whenever you create a text object. <strong>MATLAB</strong> executes thisroutine after setting all text properties. Setting this property on an existingtext object has no effect.The handle of the object whose CreateFcn is being executed is accessible onlythrough the root CallbackObject property, which you can query using gcbo.DeleteFcnstringDelete text callback routine. A callback routine that executes when you deletethe text object (e.g., when you issue a delete command or clear the axes orfigure). <strong>MATLAB</strong> executes the routine before destroying the object’s propertiesso these values are available to the callback routine.The handle of the object whose DeleteFcn is being executed is accessible onlythrough the root CallbackObject property, which you can query using gcbo.Editingon | {off}Enable or disable editing mode. When this property is set to the default off,you cannot edit the text string interactively (i.e., you must change the Stringproperty to change the text). When this property is set to on, <strong>MATLAB</strong> placesan insert cursor at the beginning of the text string and enables editing. Toapply the new text string:• Press the ESC key• Clicking in any figure window (including the current figure)• Reset the Editing property to off<strong>MATLAB</strong> then updates the String property to contain the new text and resetsthe Editing property to off. You must reset the Editing property to on toagain resume editing.2-511

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

Saved successfully!

Ooh no, something went wrong!