home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / intervie / 3615 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.5 KB  |  39 lines

  1. Nntp-Posting-Host: drott.ifi.uio.no
  2. Newsgroups: comp.windows.interviews
  3. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!ronny
  4. From: ronny@ifi.uio.no (Ronny Andre Nilsen)
  5. Subject: FieldEditor and events.
  6. Message-ID: <RONNY.93Jan22162044@drott.ifi.uio.no>
  7. Sender: ronny@ifi.uio.no (Ronny Andre Nilsen)
  8. Organization: Dpt. of Informatics, University of Oslo, Norway
  9. Date: Fri, 22 Jan 1993 15:20:43 GMT
  10. Lines: 26
  11. Originator: ronny@drott.ifi.uio.no
  12.  
  13.  
  14. Hi, I have an application that uses 3 FieldEditors's in the same
  15. window. By doing somthing like this (my class is a subclass of
  16. InputHandler ): 
  17.  
  18.   remove_all_input_handlers();
  19.   append_input_handler(fedit1);
  20.   append_input_handler(fedit2);
  21.   append_input_handler(fedit3);
  22.  
  23. it looks like everything is ok. The tab key moves the cursor between
  24. the fields, and mouse clicking also moves the cursor. The problem is
  25. that I can only write to the field that have the mouse cursor above
  26. it. What can I do to make all keyboard events go to the field editor
  27. that have the cursor, regardless of where the mouse cursor is in the
  28. window??
  29.  
  30. I would appreciate it if anybody could shed som light on this or give
  31. me a pointer to an example that does this.
  32.  
  33.     Ronny
  34. --
  35. Disclaimer - These opiini^H^H damn! ^H^H ^Q ^[ .... :w  :q  :wq  :wq! ^d  X ^?
  36. exit X Q  ^C ^? :quitbye  CtrlAltDel   ~~q  :~q  logout  save/quit :!QUIT
  37. ^[zz ^[ZZZZZZ ^H  man vi ^@  ^L  ^[c  ^# ^E ^X ^I ^T ? help  helpquit ^D  ^d
  38. man help ^C ^c help exit ?Quit ?q CtrlShftDel "Hey, what does this button d..."
  39.