Function Reference: Volume 3 (P-Z) - The MathWorks - #1251

/ 1696


catalogue search
P. 1251
P. 1252
P. 1253
P. 1254
P. 1255
P. 1256
P. 1257
P. 1258
P. 1259
P. 1260
P. 1261
P. 1262
P. 1263
P. 1264
P. 1265
P. 1266
P. 1267
P. 1268
P. 1269
P. 1270
P. 1271
P. 1272
P. 1273
P. 1274
P. 1275
P. 1276
P. 1277
P. 1278
P. 1279
P. 1280
P. 1281
P. 1282
P. 1283
P. 1284
P. 1285
P. 1286
P. 1287
P. 1288
P. 1289
P. 1290
P. 1291
P. 1292
P. 1293
P. 1294
P. 1295
P. 1296
P. 1297
P. 1298
P. 1299
P. 1300


See other catalogues for The MathWorks

Text version of the page
Uicontextmenu Properties
creates a default CreateFcn callback that runs whenever you create a new context menu. It sets the default Visible property of a context menu.
To override this default and create a context menu whose Visible property is set to a different value, call uicontextmenu with code similar to
hpt = uicontextmenu(...,'CreateFcn','set(gcbo,... ,,Visible,,,,,off,,),)
Note To override a default CreateFcn callback you must provide a new callback and not just provide different values for the specified properties. This is because the CreateFcn callback runs after the property values are set, and can override property values you have set explicitly in the uicontextmenu call. In the example above, if instead of redefining the CreateFcn property for this uicontextmenu, you had explicitly set Visible to off, the default CreateFcn callback would have set Visible back to the default, i.e., on.
See "Function Handle Callbacks" for information on how to use function handles to define a callback function.
DeleteFcn
string or function handle
Delete uicontextmenu callback routine. A callback routine that executes when you delete the uicontextmenu object (e.g., when you issue a delete command or clear the figure containing the uicontextmenu). MATLAB executes the routine before destroying the object's properties so these values are available to the callback routine.
2-3535

pageCatalog pdf di En 2012-06-22-01