home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 7
/
FreshFishVol7.bin
/
bbs
/
gnu
/
aplusplus-1.01-src.lha
/
GNU
/
src
/
amiga
/
APlusPlus-1.01
/
libsource
/
GT_Listview.cxx
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-09
|
1KB
|
47 lines
/******************************************************************************
**
** C++ Class Library for the Amiga© system software.
**
** Copyright (C) 1994 by Armin Vogt ** EMail: armin@uni-paderborn.de
** All Rights Reserved.
**
** $Source: apphome:APlusPlus/RCS/libsource/GT_Listview.cxx,v $
** $Revision: 1.4 $
** $Date: 1994/05/09 21:19:28 $
** $Author: Armin_Vogt $
**
******************************************************************************/
extern "C" {
#ifdef __GNUG__
#include <inline/intuition.h>
#include <inline/gadtools.h>
#include <inline/utility.h>
#endif
#ifdef __SASC
#include <proto/intuition.h>
#include <proto/gadtools.h>
#include <proto/utility.h>
#endif
}
#include <APlusPlus/intuition/GT_Gadgets/GT_Listview.h>
volatile static char rcs_id[] = "$Id: GT_Listview.cxx,v 1.4 1994/05/09 21:19:28 Armin_Vogt Exp Armin_Vogt $";
void GT_Listview::callback(const IntuiMessageC *imsg)
/* Listview gadgets will send GADGETUP only for each user selection.
The Code field will contain the selected field ordinal number.
*/
{
// since GT_Gadget sets IDCMP to LISTVIEW_IDCMP per default,
// also INTUITICKS, which hold no information in the Code field,will arive here!
if (imsg->getClass()!=CLASS_INTUITICKS)
{
setAttrs( AttrList(GTLV_Top,(WORD)imsg->Code,TAG_END) );
}
}