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 >
C/C++ Source or Header  |  1994-12-12  |  667b  |  29 lines

  1. // wow, the performance sucks with a keyboard handler attached to the 
  2. // combo box entry field.  see if it's that slow with only the default
  3. // key processing.
  4.  
  5. #include <iframe.hpp>
  6. #include <istring.hpp>
  7. #include <icombobx.hpp>
  8. #include <string.h>
  9. #include <stdio.h>
  10.  
  11. main()
  12. {
  13.   IFrameWindow *fw = new IFrameWindow(0x1000);
  14.   IComboBox cbox(0x1001,fw,fw,IRectangle(500,100),
  15.          IComboBox::classDefaultStyle &
  16.          ~(IComboBox::horizontalScroll));
  17.   int i;
  18.  
  19.   fw->setClient(&cbox);
  20.   fw->setFocus();
  21.   fw->show();
  22.  
  23.   for (i = 'a'; i <= 'z'; i++) {
  24.     cbox.addAsLast(IString((char)i) + " potatoe");
  25.   }
  26.  
  27.   IApplication::current().run();
  28. }
  29.