IMAGESTRIP__DEFINE Name
IMAGESTRIP__DEFINE
Purpose
The purpose of this routine is to allow a sequence of images to exist in
a rwo or strip of images. The object is a compound widget object and is
a subclassed BASEWIDGET. Buttons at either end of the image strip draw widget
allow the strip to be "moved" one image at a time. If you hold the buttons down
and touch the space bar, images can be move very rapidly. See the text program at
the end of this file for an example.
Authors
FANNING SOFTWARE CONSULTING BURRIDGE COMPUTING
1645 Sheely Drive 18 The Green South
Fort Collins Warborough, Oxon
CO 80526 USA OX10 7DN, ENGLAND
Phone: 970-221-0438 Phone: +44 (0)1865 858279
E-mail: davidf@dfanning.com E-mail: davidb@burridgecomputing.co.uk
Category
Objects. Syntax
theObject = Obj_New("IMAGESTRIP")
Superclasses
BASEWIDGET
WIDGETATOM
CATATOM
CATCONTAINER IDLITCOMPONENT
IDL_CONTAINER Class Structure
class = { IMAGESTRIP, $
imageContainer: Obj_New(), $ ; An ImageContainer object.
l_buttonID: Obj_New(), $ ; The left button identifier.
r_buttonID: Obj_New(), $ ; The right button identifier.
start_frame: 0L, $ ; The starting frame on the left.
drawID: Obj_New(), $ ; Draw widget for image display. (X size is xsize*frames, Y size is ysize.)
pixmap: Obj_New(), $ ; A pixmap for buffering image display.
xsize: 0L, $ ; Image X size.
ysize: 0L, $ ; Image Y size.
frames: 0L, $ ; The number of frames in the strip.
annotateColor: "", $ ; The annotation color.
_event_handler:Obj_New(), $ ; The real event handler object(s) for the IMAGESTRIP.
_event_method_real: "", $ ; The event method assigned by the user to this object widget.
INHERITS BASEWIDGET $
} Event Structure
This is the event structure sent from the IMAGESTRIP when someone clicks the mouse
inside the image strip window..
event = { IMAGESTRIP_EVENT, $
ID:Obj_New(), $ ; The widget object that caused the event.
TOP: Obj_New(), $ ; The object at the top of the object hierarchy.
HANDLER:Obj_New(), $ ; The event handler object.
EVENT_NAME: "", $ ; The name of the event, IMAGESTRIP_EVENT.
NAME: "", $ ; The name of the object.
SELECTION:Obj_New() $ ; The selected image object in the ImageContainer.
BUTTON_DOWN: "" ; The button clicked DOWN in draw widget. "LEFT", "MIDDLE", or "RIGHT".
}
Modification History
Written by: David W. Fanning, 21 February 2004.
Added BUTTON_DOWN field in IMAGESSTRIP_EVENT. 20 Dec 2004. DWF.