chooserlist label on the right?

This forum is for general developer support questions.
Post Reply
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 380
Joined: Sun Jun 19, 2011 10:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

chooserlist label on the right?

Post 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),
User avatar
gazelle
Posts: 102
Joined: Sun Mar 04, 2012 12:49 pm
Location: Frohnleiten, Austria

Re: chooserlist label on the right?

Post 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,
              ...
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 380
Joined: Sun Jun 19, 2011 10:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Re: chooserlist label on the right?

Post by javierdlr »

@gazelle

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