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),
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),