Welcome, Guest. Please login or register.

Author Topic: Reaction alignment etc. (help needed)  (Read 1603 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
Reaction alignment etc. (help needed)
« on: April 18, 2011, 11:42:22 AM »
So being stubborn as a mule, I went to try Reaction (no worries, the plan is to learn both Reaction and MUI...) and I don't really understand the difference between the LAYOUT_ShrinkWrap and LAYOUT_SpaceInner tags.
Besides that I'm having trouble making a simple horizontal grid of icons appear aligned on the bottom left of the window!
I'm using the following code to create the layout hierarchy (posting this on my A1200 so bear with me, I think the indentation will be completely screwed up...):
if (!(Objects[OID_MAIN] = WindowObject,
                                               WA_ScreenTitle, "BearsNose v0.6",
                                               WA_Title, "BearsNose",
                                               WA_Activate, TRUE,
                                               WA_DepthGadget, TRUE,
                                               WA_DragBar, TRUE,
                                               WA_CloseGadget, TRUE,
                                               WA_SizeGadget, TRUE,
                                               WINDOW_IconifyGadget, TRUE,
                                               WINDOW_IconTitle, "BearsNose",
                                               WINDOW_AppPort, AppPort,
                                               WINDOW_Position, WPOS_CENTERSCREEN,
                                               WINDOW_ParentGroup, Gadgets[GID_MAIN] = VGroupObject,
                                                 LAYOUT_VertAlignment, LALIGN_BOTTOM,
                                                 LAYOUT_ShrinkWrap, TRUE,
                                                 LAYOUT_SpaceInner, FALSE,
                                                 LAYOUT_DeferLayout, TRUE,
                                                 LAYOUT_AddChild, HGroupObject,
                                                   LAYOUT_EvenSize, TRUE,
                                                   LAYOUT_HorizAlignment, LALIGN_LEFT,
                                                   LAYOUT_VertAlignment, LALIGN_BOTTOM,
                                                   /*LAYOUT_SpaceOuter, TRUE,*/
                                                   LAYOUT_ShrinkWrap, TRUE,
                                                   LAYOUT_SpaceInner, FALSE,
                                                   LAYOUT_DeferLayout, TRUE,
                                                   LAYOUT_AddChild, ButtonObject,
                                                     GA_ID, GID_REC,
                                                     GA_RelVerify, TRUE,
                                                     GA_Text,"REC",
                                                     BUTTON_PushButton, TRUE,
                                                     ButtonEnd,
                                                   CHILD_WeightedHeight, 0,
                                                   LAYOUT_AddChild, ButtonObject,
                                                     GA_ID, GID_PAUSE,
                                                     GA_RelVerify, TRUE,
                                                     GA_Text,"PAUSE",
                                                     BUTTON_PushButton, TRUE,
                                                     ButtonEnd,
                                                   CHILD_WeightedHeight, 0,
                                                   LAYOUT_AddChild, ButtonObject,
                                                     GA_ID, GID_STOP,
                                                     GA_RelVerify, TRUE,
                                                     GA_Text,"STOP",
                                                     ButtonEnd,
                                                   CHILD_WeightedHeight, 0,
                                                   LAYOUT_AddChild, ButtonObject,
                                                     GA_ID, GID_QUIT,
                                                     GA_RelVerify, TRUE,
                                                     GA_Text,"Quit",
                                                     ButtonEnd,
                                                   CHILD_WeightedHeight, 0,
                                                   EndHGroup,
                                                 EndGroup,
                                               EndWindow))



Any hints ?
\\"We made Amiga, they {bleep}ed it up\\"