home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 Mobile
/
Chip_Mobile_2001.iso
/
palm
/
business
/
printcar
/
printcar.exe
/
src
/
UI
/
PopupList.cc
< prev
next >
Wrap
C/C++ Source or Header
|
2000-06-06
|
656b
|
32 lines
//
// $Id: PopupList.cc,v 1.2 2000/06/06 09:31:14 sergey Exp $
//
#include <Pilot.h>
#include "PopupList.h"
#include "Util/Assert.h"
namespace UI
{
PopupList::PopupList(Form& parent, Word triggerID, Word listID):
List(parent, listID),
_trigger(parent, triggerID)
{}
PopupList::~PopupList()
{}
// operations
void PopupList::setSelection(int index)
{
List::setSelection(index);
char* selectionText = LstGetSelectionText(objectPtr(), index);
if (selectionText != 0)
CtlSetLabel(_trigger.objectPtr(), selectionText);
}
}
// namespace UI