Page 1 of 1

chooserlist label on the right?

PostPosted: Wed Feb 15, 2017 5:00 pm
by javierdlr
Seems I can't put the label of a chooser gadget on the right side ¿:-/
Is it possible or should I make an LAYOUT_AddChild button readonly without frame?

chooser.gadget 53.22 (27-11-2016)


[@ | chooserlist ] 'label here'

Code: Select all
             LAYOUT_AddChild, OBJ(OID_P1_OPTIONS) = IIntuition->NewObject(LayoutClass, NULL, //"layout.gadget",
               //LAYOUT_Orientation, LAYOUT_ORIENT_VERT,
               //LAYOUT_SpaceOuter,  TRUE,
               //LAYOUT_SpaceInner,  FALSE,
               LAYOUT_AddChild, OBJ(OID_P1_KJ) = IIntuition->NewObject(ChooserClass, NULL, //"chooser.gadget",
                GA_ID,         OID_P1_KJ,
                GA_RelVerify,  TRUE,
                GA_Underscore, 0,
                CHOOSER_Labels,   &player_kj_list,
                CHOOSER_Selected, 0,
               TAG_DONE),
              //CHILD_WeightedWidth, 0,
              CHILD_Label, IIntuition->NewObject(LabelClass, NULL,// "label.image",
               LABEL_Text, GetString(&li, MSG_GUI_AI_BUTTON_REMAP),
              TAG_DONE),
TAG_DONE),


What I have/do now is:
Code: Select all
           LAYOUT_AddChild, IIntuition->NewObject(ButtonClass, NULL,
            GA_Text,       GetString(&li, MSG_GUI_AI_BUTTON_REMAP),
            GA_ReadOnly,   TRUE,
            GA_Underscore, 0,
            BUTTON_BevelStyle,    BVS_NONE,
            BUTTON_Transparent,   TRUE,
            BUTTON_SoftStyle,     FSF_ITALIC,
            BUTTON_Justification, BCJ_RIGHT,
           TAG_DONE),

Re: chooserlist label on the right?

PostPosted: Sat Feb 18, 2017 9:18 am
by gazelle
Have you tried:
Code: Select all
    LAYOUT_LabelColumn (uint32)
        The side where the on which side of the gadget the label will
        be placed in the group. Valid values are PLACETEXT_LEFT and
        PLACETEXT_RIGHT. See CHILD_Label.

        Defaults to PLACETEXT_LEFT.

        Applicability is (OM_NEW, OM_SET, OM_NOTIFY)


Code: Select all
             LAYOUT_AddChild, OBJ(OID_P1_OPTIONS) = IIntuition->NewObject(LayoutClass, NULL,
               LAYOUT_LabelColumn, PLACETEXT_RIGHT,
               LAYOUT_AddChild, OBJ(OID_P1_KJ) = IIntuition->NewObject(ChooserClass, NULL,
                ...

              CHILD_Label, IIntuition->NewObject(LabelClass, NULL,
              ...

Re: chooserlist label on the right?

PostPosted: Sat Feb 18, 2017 6:16 pm
by javierdlr
@gazelle

THX 'LAYOUT_LabelColumn, PLACETEXT_RIGHT' is what I was looking for! :-)