home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18501 < prev    next >
Encoding:
Text File  |  1993-01-11  |  3.4 KB  |  74 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!destroyer!gatech!concert!samba!usenet
  3. From: Todd_Lewis@unc.edu (Todd M. Lewis)
  4. Subject: Re: A lot of questions
  5. Message-ID: <1993Jan11.155939.17227@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: guitar.oit.unc.edu
  8. Organization: UNC Office of Information Technology
  9. References: <a2bartel.726750456@rzdspc24>
  10. Date: Mon, 11 Jan 1993 15:59:39 GMT
  11. Lines: 61
  12.  
  13. In article <a2bartel.726750456@rzdspc24>  
  14. a2bartel@rzdspc24.informatik.uni-hamburg.de (Henner Bartels) writes:
  15. >So now the questions:
  16. > a) I wanna get informed, if the user (actually me) clicks on a
  17. >    system-gadget. Example: If the User clicks on the Screen2Front
  18. >    gadget, not the Screen2Front function shall be invoked, but
  19. >    a screenselection list  will be displayed. To perform this,
  20. >    I must know when a system gadget is clicked and the information
  21. >    has to be `stolen` from the system, so that the system can`t
  22. >    perform the original function.
  23.  
  24. There are several approaches which could give you hints that this
  25. has happened, but nothing fool proof.  Nothing in the system supports
  26. this type of operation.  Unless/until a method is provided by the
  27. system, almost anything you come up with is practically guaranteed to break.
  28.  
  29. > b) Belonging to this, is there a way of telling the system that
  30. >    one of it`s gadgets is clicked, when it is`nt really.
  31.  
  32. You can introduce your own input events into the input stream.  However,
  33. there is no way to reliably tie these events to specific gadgets.
  34.  
  35. > c) I want to send messages to a window (better it`s controlling
  36. >    process). e.g. I`ve got the address of a window, and want to tell
  37. >    it that it should close.
  38.  
  39. If it has a close gadget and its IDCMP supports a WINDOWCLOSE message,
  40. you could send it a fake IntuiMessage to that effect.  It will work
  41. most of the time.  You will break often enough that you will regret it though.
  42.  
  43. > d) I also want to add a gadget in the menubar of any window
  44. >    e.g. a gadget wich will call DisplayBeep() when pressed. The point
  45. >    is that this gadget should be attached to any window (not only
  46. >    the windows controlled by my specific task. For example
  47. >    to support a minimize/maximize function for OS < 2.0
  48.  
  49. Again, a neat idea that will break under some circumstances no matter
  50. how you do it.  You just can't do it reliably.
  51.  
  52. > e) How can I program a window-iconify mechanism. To be more
  53. >    precise, what have I got to do, that the window-owner still
  54. >    could draw into his window, even though it`s not displayed anymore.
  55.  
  56. You can't do it without breaking.  Sorry, I know these are not the
  57. answers you wanted to hear, but people have been hacking around on
  58. the Amiga since 1985 trying to add these "features" and every attempt
  59. so far fails under one or more normal circumstances.
  60.  
  61. >Answers to one ore more (even better: all ;-]) questions will leed
  62. >to extrem happiness. C-source will be welcomed.
  63.  
  64. Somehow I don't think you are happy with the answers to your questions.
  65. You've obviously thought about user interactions in some detail
  66. and you are probably a reasonably capable programmer to be willing
  67. to tackle this level of problem.  Apply your skills to tools for
  68. users and other programmers, and send your suggestions to
  69. suggestions@cbmvax.commodore.com.
  70. --
  71.  _/_/_/  _/     Todd_Lewis@unc.edu          You can lead a horse to 
  72.   _/    _/     utoddl@guitar.oit.unc.edu   Mohammad, but you can't make
  73.  _/    _/_/_/                             a mountain drink a mole hill.
  74.