home *** CD-ROM | disk | FTP | other *** search
- // 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();
- }
-