home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / atari / st / tech / 5769 < prev    next >
Encoding:
Text File  |  1992-11-23  |  4.1 KB  |  73 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!star!richard
  3. From: richard@star.ic.ac.uk (Richard Syratt )
  4. Subject: Gem programming
  5. Sender: richard@star (Richard Syratt )
  6. Organization: Imperial College, London University
  7. Date: Mon, 23 Nov 1992 12:19:23 GMT
  8. Message-ID: <1992Nov23.121923.16446@sol.ctr.columbia.edu>
  9. Lines: Lots
  10. X-Posted-From: op.ph.ic.ac.uk
  11. NNTP-Posting-Host: sol.ctr.columbia.edu
  12.  
  13.  
  14. Some of these questions might have been floating around a couple of months
  15. ago, but I've forgotten the solutions, so...
  16.  
  17. 1)  NEWTOP message:  This can be used to disable scroll bars when sent to
  18.     a window which is about to be deactivated.  Does it work?  I mean does
  19.     multitos/gem send this message to an applications top window which isn't
  20.     the desktops top window?  Also is there a simple command to disable
  21.     scroll bars or should I just set the slider size to 1000 and ignore any
  22.     scroll messages not sent to the top window.  Some people might think I
  23.     should leave the bars active - but I learnt to program gui's on a mac,
  24.     and scroll bars in the active window only is the convention used.  This
  25.     makes sense since a click in a deactiveated window only has one operation...
  26.     to bring it to the top... how can you scroll something you can't see??
  27.     Obviously on large screens you can have windows next to each other - but
  28.     most macs and st's don't have these.
  29.  
  30. 2)  Bezier curves.  (I think):  I'd like to be able to produce cirlces
  31.     ellipses, etc. using curves with dragable handles.  I've seen this done
  32.     with four curves per circle etc. (a) is v_pline the
  33.     best way to draw them (lots of points in array for definition) and (b)
  34.     (not really gem but...) what's the equation/algorithm for these curves.
  35.  
  36. 3)  Menus:  There was an argument going on about which key to use to cycle
  37.     windows... (can some one mail me the standard key bindings for menu
  38.     options??)  Something I've seen and like is a list of an applications
  39.     open windows in a menu, selecting the item brings that window to the top.
  40.     What's the best way to implement these "growing menus"?  I could have a load
  41.     of blank entries and change the text as required - but that's ugly, or
  42.     possibly a user defined object, but that'd highlight wrong.  The only other
  43.     solution I can think of is to copy the menu tree, and change it on the fly,
  44.     this would involve keeping track of the box which contains all the items
  45.     as well as farting about with the object pointers to allow more space for the
  46.     new line.  Is there an easy way to do this??
  47.  
  48. 4)  Key bindings:  I was using ORCS and noticed a "key..." button in some of
  49.     the editing windows.  Playing about with this (I've only ever had access to
  50.     "mkrsc" before, so I don't know how standard this is), I've discovered that
  51.     bits in the type and state fields of the object structure are set to represent
  52.     the modifiers and key press (extra numbered bits at bottom of lists).
  53.     A small routine can process a key press by
  54.     comparing relevant bits in the key varaibles returned from event_multi
  55.     and the fields in all the objects in the menu tree.  When a match is found
  56.     you know you've got the right item... but is the item a child of the title???
  57.     Of course not, so what's the best way of finding an items title...
  58.     (another mac hang over - my menu handler requires title and item).  I've got
  59.     one method, but it requires that the titles be in order.  Not very flexible.
  60.     Obviously the same key bits could be used to add the short hand text to each
  61.     menu item at the time the resource is loaded, is there a standard way of doing
  62.     this and what is the normal character used to denote <ALT> in a menu item?
  63.     This method will save any arguments on which key bindings are best since you
  64.     can just change them if you don't like what you're given.
  65.  
  66. If you're still reading, thanks for your interest, now post/mail replies, even
  67. if they're not code related but just your point of view on scroll bars etc.
  68.  
  69. Since I've spent the last three hours catching up with last weeks news, I'd better
  70. get down to some work...  maybe a quick rescan first.
  71.  
  72. Richard
  73.