home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 3
/
AACD03.BIN
/
AACD
/
Programming
/
ClassFree
/
CFpumbuttonclass
/
CFpumbutton.doc
next >
Wrap
Text File
|
1998-06-09
|
1KB
|
55 lines
Class: CFpumbuttonclass
Author: Anders E. Andersen <andersa@fys.ku.dk>
Superclass: CFbuttonclass
Desciption: GadTools cycle gadget replacement
Include File: "CFpumbutton.h"
New Methods:
------------
None
Changed Methods:
----------------
GM_GOACTIVE - Activates the button gadget by calling the
supermethod, and open a window in which it draws the
possible selections (using CFtexticlass).
GM_HANDLEINPUT - Checks if the pointer is over one of
the images by cycling through them, calling IM_HITTEST
for each image. It remebers which string is currently
selected so it doesn't have to redraw all of them when
the selection changes. Completely overrides the
supermethod.
GM_GOINACTIVE - Frees text images and closes the menu
window, it then calls the supermethod.
Attributes:
-----------
All attributes are passed via supermethod. The
following attributes are used by CFpumbuttonclass:
GA_Left, GA_Top, GA_Width, GA_Height
Positions and sizes the button.
CFPU_Labels
A pointer to the first item in a null pointer
terminated array of stringpointers which are the choices
of the popup-menu button.
CFPU_Active
The number of the currently active label.