Chapter Contents

Previous

Next
Form Data Model: _drop

Form Data Model: _drop



Completes a viewer's drop operation


Syntax
Details

Syntax

CALL SEND (model-id, '_drop', rep, oper, data, row, column);

Argument Type Description
rep
C specifies the representation selected for the drop
oper
C specifies the operation selected for the drop
data
N specifies an SCL list identifier that contains the data defined by the representation
row
N specifies the row coordinates list where the drop occurred
column
N specifies the column coordinates list where the drop occurred


Details

The _drop method method is called automatically after a drag object has been dropped on the attached viewer and the viewer does not recognize the rep passed to it. The _drop method is passed the data returned from the call to _getDragData. The _drop method is the last method called in the drop sequence.

If you are using a viewer supplied with SAS/AF software, such as the data table or data form, the location of the drop is automatically translated for you by the attached viewer into coordinates that make sense for that viewer. For example, when the attached viewer is a data table, a table editor, or a subclass of the table editor, the location is translated into cell coordinates. If the attached viewer is a data form, a form editor, or a subclass of the form editor, the location of the drop is the pixel offset measuring from the upper left corner of the the form editor.

Note:   If you are using a user-defined viewer, you must translate the pixel offset into units that make sense for your viewer.  [cautionend]

For general information about drag and drop operations, see SAS/AF online help.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.