home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18207 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  2.0 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!biosci!uwm.edu!ogicse!reed!bowman
  2. From: bowman@reed.edu (BoBoRaMaVitch <bowman@reed.edu>)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Complex window and popup v
  5. Message-ID: <1992Nov10.003127.24747@reed.edu>
  6. Date: 10 Nov 92 00:31:27 GMT
  7. References: <ALESKINE.92Nov9221258@cardhu.cs.hut.fi>
  8. Distribution: comp.sys.mac.programmer
  9. Organization: Reed College, Portland, OR
  10. Lines: 35
  11.  
  12. In article <ALESKINE.92Nov9221258@cardhu.cs.hut.fi> aleskine@cs.hut.fi (Arto Leskinen) writes:
  13. >I have window with two popups, some static text and some buttons. Is this
  14. >best done by program, or should I use window/dialog resourse for this.
  15. >Of course I want that my window works on background. (Modeless?)
  16.  
  17. Far better, IMO, to not use the dialog manager for this sort of thing.  I
  18. suspect most people would agree with me on this point.
  19.  
  20. >What is easiest way to make up popup with down arrow on it? I do not want
  21. >to use menu resourse, because I do not know on startup time how many and 
  22. >which items I have in menu. If someone has example code on think C I would 
  23. >appreciate.
  24.  
  25. Well...7 has a CDEF popup menu.  If you're not using 7, try sumex or somesuch
  26. for popup CDEF from the past.
  27.  
  28. >Can a program use code resources of different files? How?
  29.  
  30. Yes, but it's probably not worth the effort.  Why do you want to do this?
  31. If you absolutely must do it, the easiest thing is to manually load the
  32. resource, lock it down, and jump into it.
  33.  
  34. >My window has similar look than finder's. So I do not want scrollbars all the
  35. >way. And I do not want line that goes up. Is there any way to stop drowing on
  36. >update?
  37.  
  38. It looks like the line is being drawn by the scroll bar.  Make the scroll bar
  39. shorter.  If you don't know who's drawing the line, drop into MacsBug, type
  40. "SS 0 0", and then watch.  Everything will be slowed down immensely, and you
  41. should be able to figure out when the offending line is being drawn.  Drawing
  42. and then erasing is rarely the preferred course of action.
  43.  
  44. lood guck,
  45. bo-bob
  46. bowman@reed.edu
  47.