[Contents] [index] [Help] [Retrace] [browse <] [Browse >]

If 2.0 Intuition finds a gadget whose hit area (gadget leftedge/topedge/
width/height) is substantially inside the border, it will be treated as
though it was declared in the border.  This is called "bordersniffing".
Gadgets declared as being in the border or detected by Intuition as being
in the border are refreshed each time after the border is refreshed, and
thus aren't clobbered.

Noteworthy special cases:

 1) A gadget that has several pixels not in the border is not
    bordersniffed. An example would be an 18-pixel high gadget in the
    bottom border of a sizebbottom window.  about half the gadget will be
    clobbered by the border rendering.

 2) A gadget that is not substantially in the border but has imagery that
    extends into the border cannot be sniffed out by Intuition.

 3) A gadget that is substantially in the border but has imagery that
    extends into the main part of the window will be sniffed out as a
    border gadget, and this could change the refreshing results.  A
    common trick to put imagery in a window is to put a 1x1 or 0x0 dummy
    gadget at window location (0,0) and attach the window imagery to it.
    To support this, Intuition will never bordersniff gadgets of size 1x1
    or smaller.

    All these cases can be fixed by setting the appropriate
    GACT_xxxBORDER gadget activation flag.

 4) In rare cases, buttons rendered with border structures and jam1 text
    may appear invisible under Release 2.

The height of the window's title bar is affected by the current font
settings.  See the discussion of "screen attributes" in the "intuition
Screens" chapter. To predict your window's titlebar height before you call
openwindow():

    topborder = screen->WBorTop + screen->Font->ta_YSize + 1

The screen's font may not legally be changed after a screen is opened.

Be sure the screen cannot go away on you.  This is true if:

    1) You opened the screen yourself.

    2) You currently have a window open on the screen.

    3) You currently hold a lock on this screen (see lockpubscreen()).

intuitext rendered into a window (either through printitext() or as a
gadget's gadgettext) defaults to the window rastport font, but can be
overridden using its itextfont field.  text rendered with the text()
function appears in the Window RastPort font.

The Window's rport's font shown above is the initial font that intuition
sets for you in your window's rastport. it is legal to change that
subsequently with setfont().