Button Widget Drag Option
The button widget now supports a new @ macro to set a Movable (or Drag) option.
Overview:
The Button Widget now supports the ability to be moved around the screen by the user with a mouse. This must be set by the designer by defining what --- OPTION value is to be sent if the button is moved. In addition to setting and firing the specified option the values of --- CURSOR ROW and --- CURSOR COLUMN are set to the location the button was moved to. It is assumed that you already know where the Button was originally defined on the screen. For the button to stick in it's new location you must position it there in Pre-Display. So you generally would dynamically create the buttons in Pre-Display based on data in your files. That way in Option Intercept if you update that data then when Pre-Display runs again, the generated buttons will be created based on the updated data. This option is specified as an @ macro entered into the Label or Tooltip widget fields.
Usage:
@ Macro Specification:
*
Set Movable -
@SMV=# Sets the Button widget to be movable and the "moved" option that fire to #. This is a numeric value where 0 = USER 0, 1 = USER 1, etc.
Comments:
Read what other users have said about this page or add your own comments.
--
PeteBrower - 2012-03-26