a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Other:
 layout.gadget
  --datasheet--
  ActivateLayoutGadget
  FlushLayoutDomainCache
  LAYOUT_GetClass
  LayoutLimits
  RethinkLayout
Include
GuruMeditation
Docs » Autodocs » layout.gadget » RethinkLayout

NAME

      RethinkLayout -- Relayout and render the layout. (V39)

SYNOPSIS

      RethinkLayout( layout, window, requester, refresh );
a0 a1 a2
void RethinkLayout( struct Gadget *, struct Window *,
struct Requester *, BOOL )

FUNCTION

      Relayout and refresh the layout page. Call this function after
a call SetGadgetAttrs() returns 1 to display the changes in the
layout. According to BOOPSI rules, a gadget will return a value
of 1 from OM_SET to tell the application to refresh. This is what
this function is for. Basically, it will call the GM_LAYOUT and
GM_RENDER methods of the layout.

INPUTS

      layout = the layout to refresh. Doesn't have to be the topmost
object in the hierarchy, if the changes do not affect
it.
window = the window to which the layout (or its parent) is
attached to.
requester = the window's requester, or NULL.
refresh = whether layout.gadget should also refresh the display.

NOTES

      This function emulates a DoGadgetMethod() on V37 and V38 systems.
The refresh flag is provided for several reasons. First, when using
LAYOUT_DeferLayout, you should not refresh upon receiving a
LAYOUT_RequestLayout notification. Second, datatypes have an
asynchronous layout, and should not be attempted to refresh before
that is finished. Wait for DTA_Sync, and then RefreshGList( layout,
window, requester, 1 ).

SEE ALSO

intuition.library/RefreshGList(), intuition.library/SetGadgetAttrsA(), intuition.library/DoGadgetMethod

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Crystal

RBS
DJ
KEF
CSL

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se