[comp.sys.amiga.tech] Menu Intuition SelectFill

bryan@geo-works.UUCP (Bryan Ford) (06/19/89)

In article <3837@sdsu.UUCP>, lindwall@sdsu.UUCP (John Lindwall) writes:
>	I've created an Intuitext menu item with Flags = HIGHIMAGE | ITEMTEXT.
>I've supplied the ItemFill pointer and a SelectFill pointer.  When the menu
>drops the ItemFill text is displayed as expected.  When the mouse pointer is
>moved over the item it seems that the SelectFill text is overwritten on top
>of the ItemFill text.  Thus the text is unreadable - since both strings are
>visible simultaneously, on top of one another.  I guess Intuition forgot to
>erase the ItemFill text before zapping the SelectFill text in there.

Easy fix.

Set the IntuiText.DrawMode to JAM2 instead of JAM1, and make sure the
BackPen is set to something different from the FrontPen.  JAM2 will cause
the new text to overwrite the old text.  Note, however, that both
IntuiTexts must be in the same relative position, and must be the same
length (pad one with spaces if necessary).

				Bryan

--

     ____________________________________________
   _/ Bryan Ford - bryan@geo-works.geo-works.com \_
 _/    ..!utah-cs!caeco!i-core!geo-works!bryan     \_
/   ..!uunet!iconsys!caeco!i-core!geo-works!bryan    \