GUI: PLT Graphics Toolkit

1`` | Overview
- | Windowing
- | Drawing
- | Editor
2`` | Reference
- | Windowing Classes
- | Windowing Functions
- | Drawing Classes
- | Drawing Functions
- | Editor Classes
- | Editor Functions
- | WXME Decoding
3`` | Configuration
4`` | Dynamic Loading
| Index

On this page:

get-event-type
set-event-type

Inherited methods:
from event%
get-time-stamp
set-time-stamp

Version: 4.0.2
contents index
← prev up next →

control-event% : class?
superclass: event%

A control-event% object contains information about a control event. An instance of control-event% is always provided to a control or menu item callback procedure.

(new control-event% |  | [event-type event-type] |
| [ | [time-stamp time-stamp]]) |

→ (is-a?/c control-event%)

event-type

:

(one-of/c 'button 'check-box 'choice
'list-box 'list-box-dclick 'text-field
'text-field-enter 'slider 'radio-box
'menu-popdown 'menu-popdown-none 'tab-panel)

time-stamp : (and/c exact? integer?) = 0

The event-type argument is one of the following:

- 'button – for button% clicks

- 'check-box – for check-box% toggles

- 'choice – for choice% item selections

- 'list-box – for list-box% selections and deselections

- 'list-box-dclick – for list-box% double-clicks

- 'text-field – for text-field% changes

- 'text-field-enter – for single-line text-field% Enter event

- 'menu – for selectable-menu-item<%> callbacks

- 'slider – for slider% changes

- 'radio-box – for radio-box% selection changes

- 'menu-popdown – for popup-menu% callbacks (item selected)

- 'menu-popdown-none – for popup-menu% callbacks (no item selected)

- 'tab-panel – for tab-panel% tab changes

This value is extracted out of a control-event% object with the get-event-type method.

See get-time-stamp for information about time-stamp.

(send a-control-event get-event-type)

→

(one-of/c 'button 'check-box 'choice
'list-box 'list-box-dclick 'text-field
'text-field-enter 'slider 'radio-box
'menu-popdown 'menu-popdown-none 'tab-panel)

Returns the type of the control event. See control-event% for information about each event type symbol.

(send a-control-event set-event-type type) → void?

type

:

(one-of/c 'button 'check-box 'choice
'list-box 'list-box-dclick 'text-field
'text-field-enter 'slider 'radio-box
'menu-popdown 'menu-popdown-none 'tab-panel)

Sets the type of the event. See control-event% for information about each event type symbol.

contents index
← prev up next →