DocumentName  DragIcon

Chapter 3: Property Descriptions and Usage

DragAuto

Applies to

Draggable controls

Description

The Drag Auto property determines whether PocketBuilder puts the control into drag mode automatically. If the property is enabled, when the user clicks the control and starts dragging it, PocketBuilder puts the control in drag mode. Clicking the control triggers a DragDrop event, not a Clicked event.

If Drag Auto is not enabled, then when the user clicks the control, PocketBuilder does not put the control in drag mode. You have to call the Drag function to put the control into drag mode.

Usage


In a painter

StepsTo set DragAuto:

  1. Select the Drag Auto check box on the Other tab page of the control’s Properties view.


In scripts

Most controls have a DragAuto property. It takes a boolean value. The following example sets drag mode for a CommandButton.

cb_1.DragAuto = TRUE





Copyright © 2004. Sybase Inc. All rights reserved. DragIcon

View this book as PDF