Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

DragWithin – PB Docs 125 – PowerBuilder Library

DragWithin – PB Docs 125

DragWithin event

The DragWithin event has different arguments for different
objects:

Object

See

ListBox, PictureListBox, ListView, and Tab
controls

Syntax 1

TreeView control

Syntax 2

Windows and other controls

Syntax 3

For information about the DataWindow control’s DragWithin
event, see the DataWindow Reference or the online Help.

Syntax 1 For ListBox, PictureListBox, ListView, and Tab controls

Description

Occurs when the user is dragging an object within the control.

Event ID

Event ID

Objects

pbm_lbndragwithin

ListBox, PictureListBox

pbm_lvndragwithin

ListView

pbm_tcndragwithin

Tab

Parameters

Argument

Description

source

DragObject by value (a reference to the
control being dragged)

index

Integer by value
(a reference to the ListView item under the pointer in the ListView
control)

Return Values

Long. Return code choices (specify in
a RETURN statement):

  • 0 Continue
    processing

Usage

Obsolete functions

You no longer need to call the DraggedObject function
in a drag event. Use the source argument instead.

Examples

This example changes the background color of the
ListView when a DragObject enters its border:

See Also

Syntax 2 For TreeView controls

Description

Occurs when the user is dragging an object within the control.

Event ID

Event ID

Objects

pbm_tvndragwithin

TreeView

Parameters

Argument

Description

source

DragObject by value (a reference to the
control being dragged)

handle

Long (a reference
to the ListView item under the pointer in the TreeView control)

Return Values

Long. Return code choices (specify in
a RETURN statement):

  • 0 Continue
    processing

Usage

Obsolete functions

You no longer need to call the DraggedObject function
in a drag event. Use the source argument instead.

Examples

This example changes the background color of the
TreeView when a DragObject enters its border:

See Also

Syntax 3 For windows and other controls

Description

Occurs when the user is dragging an object within the control.

Event ID

Event ID

Objects

pbm_bndragwithin

CheckBox, CommandButton, Graph, InkEdit, InkPicture,
Picture, PictureHyperLink, PictureButton, RadioButton

pbm_cbndragwithin

DropDownListBox, DropDownPictureListBox

pbm_dragwithin

DatePicker, MonthCalendar

pbm_endragwithin

SingleLineEdit, EditMask, MultiLineEdit,
StaticText, StaticHyperLink

pbm_omndragwithin

OLE

pbm_prndragwithin

HProgressBar, VProgressBar

pbm_rendragwithin

RichTextEdit

pbm_sbndragwithin

HScrollBar, HTrackBar, VScrollBar, VTrackBar

pbm_uondragwithin

UserObject

pbm_dragwithin

Window

Parameters

Argument

Description

source

DragObject by value (a reference to the
control being dragged)

Return Values

Long. Return code choices (specify in
a RETURN statement):

  • 0 Continue
    processing

Usage

Obsolete functions

You no longer need to call the DraggedObject function
in a drag event. Use the source argument instead.

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x