MOUSEPRESSEDLABEL

 

 

Purpose

.MousePressedLabel allows you to specify the label to be applied to certain objects when the mouse pointer is over it and the primary mouse is depressed.

This property can also be used to configure the visual appearance of the Drag avatar used in the Drag and Drop functionality. The label is then displayed when the mouse is pressed during the Drag operation.

Note that the Drag operation does not have its own Logic Event (logic is fired on the Drop). Consequently, you must set the visual appearance of the Drag avatar in code before the Drag occurs in the Timing Cycle. Click here for more information about Drag and Drop. 

Syntax

Setting:        ObjectReference.MousePressedLabel = Value

Retrieving:   Variable = ObjectReference.MousePressedLabel
 

Operation

ObjectReference is the Tag Name of the object
Value
is a character string or variable
is an alphanumeric variable

 

Remarks
 

 

Example

To set the MousePressedLabel to 'Visa selected' for an Icon object (Tag Name = CUSTOMERACTIVEICON:

 CUSTOMERACTIVEICON.MousePressedLabel = 'Visa selected'  or

$VISA_MPLABEL = 'Visa selected'
CUSTOMERACTIVEICON.MousePressedLabel = $VISA_MPLABEL

 

To retrieve the current MousePressedLabel text from that same object:

 $CUSTOMERACTIVEICON_MPLABEL = CUSTOMERACTIVEICON.MousePressedLabel
 

 

Note: .MousePressedLabel and .MousePressedGraphic properties are not new to PROIV but can be used to configure the appearance of the Drag avatar in PROIV used in the Drag and Drop functionality.

 

Comment on this topic

Topic ID: 510073

 
 
 

Table of Contents

Index

Glossary

-Search-

Back