Function Reference: Volume 2 (F-O) - The MathWorks - #251

/ 1568


catalogue search
P. 251
P. 252
P. 253
P. 254
P. 255
P. 256
P. 257
P. 258
P. 259
P. 260
P. 261
P. 262
P. 263
P. 264
P. 265
P. 266
P. 267
P. 268
P. 269
P. 270
P. 271
P. 272
P. 273
P. 274
P. 275
P. 276
P. 277
P. 278
P. 279
P. 280
P. 281
P. 282
P. 283
P. 284
P. 285
P. 286
P. 287
P. 288
P. 289
P. 290
P. 291
P. 292
P. 293
P. 294
P. 295
P. 296
P. 297
P. 298
P. 299
P. 300


See other catalogues for The MathWorks

Text version of the page
Figure Properties
Effects On Other Properties
• CurrentObject property — mouse scrolling does not update this figure property
• CurrentPoint property — if there is no callback defined for the WindowScrollWheelFcn property, then MATLAB does not update the CurrentPoint property as the scroll wheel is turned. However, if there is a callback defined for the WindowScrollWheelFcn property, then MATLAB updates the CurrentPoint property just before executing the callback. This enables you to determine the point at which the mouse scrolling occurred.
• HitTest property — the WindowScrollWheelFcn callback executes regardless of the setting of the figure HitTest property.
• SelectionType property — the WindowScrollWheelFcn callback has no effect on this property.
Values Returned by VerticalScrollCount
When a user moves the mouse scroll wheel by one click, MATLAB increments the count by +/- 1, depending on the direction of the scroll (scroll down being positive). When MATLAB calls the WindowScrollWheelFcn callback, the counter is reset. In most cases, this means that the absolute value of the returned value is 1. However, if the WindowScrollWheelFcn callback takes a long enough time to return and/or the user spins the scroll wheel very fast, then the returned value can have an absolute value greater than one.
The actual value returned by VerticalScrollCount is the algebraic sum of all scroll wheel clicks that occurred since last processed. This enables your callback to respond correctly to the user's action.
Example
2-1195

pageCatalog pdf di En 2012-06-22-01