I would like to make a group, not the entire window, set to a black background color (no pattern). The window is resizeable, thus changing the group size, so would have to refresh automatically. I am looking for the hook source code to do this.LAYOUT_BackFill (struct Hook *)
A layer backfill hook to use in the group to provide a more
complex background pattern. This is not propagated to the
group's children; use LAYOUT_LayoutBackFill for that.
Pass ~0L to have the group use the window.class backfill.
Defaults to use the window.class backfill if any exists; else
to "clear" for the main layout, and "no backfill" for sublayouts.
Applicability is (OM_NEW, OM_SET)
Code: Select all
LAYOUT_AddChild, IIntuition->NewObject(LayoutClass,NULL,LAYOUT_Orientation,LAYOUT_ORIENT_VERT,
// make this group with a black background
LAYOUT_BackFill, hook,
LAYOUT_AddChild, IIntuition->NewObject(LayoutClass,NULL,LAYOUT_Orientation,LAYOUT_ORIENT_HORIZ,
LAYOUT_SpaceInner, TRUE,
LAYOUT_SpaceOuter, TRUE,
LAYOUT_EvenSize, TRUE,
LAYOUT_AddChild, ChildObjects[GAD_OK]=IIntuition->NewObject(ButtonClass,NULL,
GA_ID, GAD_OK,
GA_Underscore, ~0,
GA_RelVerify, TRUE,
GA_Text, SAK_LocaleString(MSG_OK),
BUTTON_SoftStyle, FSF_BOLD,
TAG_DONE),
CHILD_WeightedWidth, 0,
LAYOUT_AddChild, ChildObjects[GAD_CANCEL]=IIntuition->NewObject(ButtonClass,NULL,
GA_ID, GAD_CANCEL,
GA_Underscore, ~0,
GA_RelVerify, TRUE,
GA_Text, SAK_LocaleString(MSG_CANCEL),
TAG_DONE),
CHILD_WeightedWidth, 0,
TAG_DONE),
TAG_DONE),