home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / msdos / programm / 2693 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.0 KB  |  28 lines

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!utcsri!torn!blaze.trentu.ca!trentu.ca!cclark
  3. From: cclark@trentu.ca (J. Chris Clark)
  4. Subject: Borland C++ OWL question.
  5. Message-ID: <9NOV199210502726@trentu.ca>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: news@trentu.ca (USENET News System)
  8. Organization: Trent University Computer Services Department
  9. Date: Mon, 9 Nov 1992 15:50:00 GMT
  10. Lines: 16
  11.  
  12. I'm using OWL with Borland C++ and can't get a modeless dialog to use the
  13. keyboard interface.  I've made my own dialog class descended from TDialog
  14. and have tried both of the following lines in the constructor:
  15.  
  16. EnableKBHandler();
  17. GetApplication()->SetKBHandler(this);
  18.  
  19. From the (scarce) docs it looks like either one of these should do the trick,
  20. but neither works, alone or together.
  21. Modal dialogs seem to invoke the keyboard handler automatically, so I don't
  22. have a problem with them, but this modeless one is beginning to get just a
  23. little frustrating!
  24.  
  25. Anyone have any sugggestions?  Any little tricks that aren't in the docs?
  26. Thanks in advance.
  27. Chris C.
  28.