[index]

MouseUp Message

Syntax

For bitmaps:
on mouseUp [<pixelColor>] end mouseUp For dataSheets and charts, pickLists, dataSheets: on mouseUp [<row> [,<col>]] end mouseUp For all other objects: on mouseUp end mouseUp For locked text fields: on mouseUp [<word> [, <wordnum>]] end mouseUp Sent to all objects, except the palette, sound, path, and timer

Description

The mouseUp message is sent to the top non hidden object under the mouse pointer when the mouse button is clicked and released. If the mouse is clicked and released outside the physical dimensions of an object, a mouseUp message is sent to the card and then travels up the message hierarchy until it is handled. If the user clicks on a physical cell of a dataSheet or dataSheet or pickList, two parameters are sent with the mouseUp message identifying the row and column of the data that was clicked. For chart objects, these parameters identify the cell whose values are associated with the selected bar, line, or pie wedge. For bitmap objects, the mouseUp message carries a parameter that describes the color of the pixel that was clicked on. Bitmap objects do not receive a mouseUp message unless the mouse pointer is positioned over a painted, non white pixel. For fields, two parameters are sent with the mouseUp message. The first parameter contains the text of the word that was clicked on. The second parameter contains the position of that word in the field i.e., what number word it is. To get the two parameters, the field's lockText must be set to true.

Notes

The mouseUp message is not issued if the user places the insertion point or makes a selection in an unlocked field or dataSheet cell. In this case, all movements of the mouse and all keystrokes are processed directly by Oracle Media Objects.

Examples

on mouseUp put "hello" into msg end mouseUp The following handler in the script of a dataSheet returns the number of the selected row: on mouseUp rowNum put rowNum
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.