home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Pier Shareware 6
/
The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso
/
035
/
pmics.zip
/
a3.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-12
|
667b
|
29 lines
// wow, the performance sucks with a keyboard handler attached to the
// combo box entry field. see if it's that slow with only the default
// key processing.
#include <iframe.hpp>
#include <istring.hpp>
#include <icombobx.hpp>
#include <string.h>
#include <stdio.h>
main()
{
IFrameWindow *fw = new IFrameWindow(0x1000);
IComboBox cbox(0x1001,fw,fw,IRectangle(500,100),
IComboBox::classDefaultStyle &
~(IComboBox::horizontalScroll));
int i;
fw->setClient(&cbox);
fw->setFocus();
fw->show();
for (i = 'a'; i <= 'z'; i++) {
cbox.addAsLast(IString((char)i) + " potatoe");
}
IApplication::current().run();
}