getbutton
getbutton
TOP
,
LEFT
,
BOTTOM
,
RIGHT

The getbutton statement retrieves the coordinates of the last button that was pressed (in global screen co-ordinates).

Parameters

This statement has four parameters:

top – field or variable that will contain the position of the top edge of the button.

left – field or variable that will contain the position of the left edge of the button.

bottom – field or variable that will contain the position of the bottom edge of the button.

right – field or variable that will contain the position of the right edge of the button.

Description

This statement retrieves the coordinates of the last button that was pressed (in global screen co-ordinates). It is intended that this statement be used in a procedure that is triggered by a button on a form (or any form object that triggers a procedure). Here is an example that gets the coordinates into four local variables.

    local  btop, bleft, bheight, bwidth
    getbutton btop, bleft, bheight, bwidth

Note: For most new applications, the info(“buttonrectangle”) function is more convenient than this statement.

See Also

- Data Button Object -- is used to create checkboxes and radio buttons.
- Displaying Data in a Grid -- fundamentals of displaying data in a grid (Text List/Matrix).
- draggraybox -- facilitates dragging something around in a form window.
- getinternalbutton -- retrieves the coordinates of the last button that was pressed (in form relative coordinates).
- getlocalbutton -- retrieves the coordinates of the last button that was pressed (in window relative coordinates).
- Image Display Data Buttons -- checkboxes and radio buttons created from custom images.
- Image Display Push Buttons -- push buttons created from custom images.
- info("buttonrectangle") -- returns a rectangle defining the edges of the most recently clicked button.
- Matrix Clicking -- handling clicks in a Matrix Object.
- Popup Menu Button Object -- is used to create popup menus anywhere on a form.
- Push Button Object -- triggers a procedure when it is pushed.
- Scroll Bar Object -- is used to create scroll bars.
- Segmented Button Object -- is used to created segmented buttons.
- Slider Object -- is used to create sliders and knobs.
- Stepper Object -- is used to create numeric steppers for use with Text Editor objects.
- Tab Panel Buttons and Selection -- button options for a Tab Panel Object.
- Tab Panel Object -- switchable tab panels.
- Text List Appearance -- customizing the appearance of a Text List Object.
- Text List Object -- displaying a grid of text.
- Web Browser Object -- is used to display web pages from within a Panorama form.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0.