chooserlist label on the right?

This forum is for general developer support questions.

chooserlist label on the right?

Postby javierdlr » Wed Feb 15, 2017 5:00 pm

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
javierdlr
Beta Tester
Beta Tester
 
Posts: 350
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain

Re: chooserlist label on the right?

Postby gazelle » Sat Feb 18, 2017 9:18 am

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
gazelle
 
Posts: 97
Joined: Sun Mar 04, 2012 1:49 pm
Location: Frohnleiten, Austria

Re: chooserlist label on the right?

Postby javierdlr » Sat Feb 18, 2017 6:16 pm

@gazelle

THX 'LAYOUT_LabelColumn, PLACETEXT_RIGHT' is what I was looking for! :-)
User avatar
javierdlr
Beta Tester
Beta Tester
 
Posts: 350
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain


Return to General Developer Support

Who is online

Users browsing this forum: No registered users and 1 guest