[comp.sys.mac.programmer] Bits under a Pulldown Menu

bwb@andante.UUCP (Bruce Ballard) (10/19/88)

I've written some programs for the Mac in Lightspeed C and there's
an occasional problem that the menus when pulled down wipe out the
bits underneath. In one case, obliteration happens every 5th time
I pull down one particular menu, but the other menus don't cause
a problem. Why is this happening? What shoudl I do about it?

-Bruce Ballard
Email: allegra!bwb@research.att.com

jdm@ut-emx.UUCP (Jim Meiss) (10/19/88)

In article <12903@andante.UUCP> bwb@andante.UUCP (Bruce Ballard) writes:
>an occasional problem that the menus when pulled down wipe out the
>bits underneath.
>
>-Bruce Ballard
>Email: allegra!bwb@research.att.com

        The menu manager does a copyBits for the rectangle which the
menu will cover. If there is not enough memory---especially acute
when you are running with 256 colors--it gives up, and just posts
an update event for the rectangle. Thus the application has to redraw
it which is generally slower.
        The solution: get more memory, naturally.


                                Jim Meiss
                                jdm@emx.utexas.edu
                                jdm%uta.MFENET@nmfecc.ARPA

-------------------------------------------------------------------------