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