[comp.sys.amiga.programmer] RemoveGadget

elf@sumax.seattleu.edu (Elf Sternberg) (02/09/91)

        Correct me if I'm wrong, but when one RemoveGadget() 's, the 
graphic image is NOT removed from the window, right?  And, to get a 
string-gadget to use a different font, one has to assign the font to the 
screen?  I've been having problems with intiution...
_________________________________________________sig 36________________
Elf Sternberg      |16-inch rotary debugger: A highly effective tool
elf@halcyon.wa.com |for locating problems in computer software. Avail-
~~~~~~~~~~~~~~~~~~~|able for deliver in most major metropolitan areas.
                   |Anchovies contribute to poor coding style, however.
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

markv@kuhub.cc.ukans.edu (02/16/91)

In article <0983w9w164w@halcyon.uucp>, halcyon!elf@sumax.seattleu.edu (Elf Sternberg) writes:
>         Correct me if I'm wrong, but when one RemoveGadget() 's, the 
> graphic image is NOT removed from the window, right? 

Right, Intuition doesn't keep track of bits in the windows.  So you
need to clear the area and re-render whatever you've cleared.  I
usually do something like RectFill() (doesn't trash the borders like
SetRast(), and call RefreshGList()).

> And, to get a 
> string-gadget to use a different font, one has to assign the font to the 
> screen?  I've been having problems with intiution...

Close.  If the IText field of the gadget is NULL, it will use the
default font.  For anything else it is up to you to have the font in
memory for Intuition to use.

> _________________________________________________sig 36________________
> Elf Sternberg      |16-inch rotary debugger: A highly effective tool
> elf@halcyon.wa.com |for locating problems in computer software. Avail-
> ~~~~~~~~~~~~~~~~~~~|able for deliver in most major metropolitan areas.
>                    |Anchovies contribute to poor coding style, however.
>                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark Gooderum			Only...		\    Good Cheer !!!
Academic Computing Services	       ///	  \___________________________
University of Kansas		     ///  /|         __    _
Bix:	  mgooderum	      \\\  ///  /__| |\/| | | _   /_\  makes it
Bitnet:   MARKV@UKANVAX		\/\/  /    | |  | | |__| /   \ possible...
Internet: markv@kuhub.cc.ukans.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~