Showing results for 
Search instead for 
Do you mean 
Reply

KF Option Menu(UI Component) width control

#! NX/KF 5.0

DefClass: CheckUIWidth(%ui_comp);
(String) Title: "CheckUIWidth";
(String) Cue: "";
(name) Apply_state: create;
(string) on_apply: "";
(string) on_ok: on_apply:;
(uncached integer) on_cancel: @{1;};
(Integer) StepStatus:  4;
(Boolean) HQBitmap: false;
(string) helpContext: Title:;

#------------------------------------------------------------------------------
# Dialog items

#------------------------------------------------------------------------------
# list of top level ui_comp children to appear on dialog
(list) DialogItems: {Sep1:, Sym1:,String1:};
(List Modifiable) Sym1Icons:{"blank","phi_s","phi","square"};
(List Modifiable) Sym1Vals:{"","","",""};
(child) Sep1:
{
    class, %ui_comp_separator;
    Title, " ";
    visibility, true;
};
(child) Sym1:
{
  class, %ui_comp_enum;
  title, "";
  presentationStyle, 0;
  titleVisibility, false;
  borderVisibility, false;
  radioOrientation, 1;
  titles, Sym1Vals:;
  icons, Sym1Icons:;
  value, 1;
  LeftAttach, Dialog:;
  RightAttach, None;
  HQBitmap, true;
};

(child) String1:
{
  class, %ui_comp_string;
  title, "";
  presentationStyle, 0;
  maxTextLength, 0;
  readOnlyString, false;
  value, "TEST";
  LeftAttach, Sym1:;
  TopAttach, Sep1:;
};

(boolean modifiable parameter) debug?: false;

(Method integer) Update:(Instance $instance) @{
  if ($instance = Sym1:) then @{
    donothing;
  } else donothing;
  0;
};

(Method boolean) Filter:(Instance $instance, Any $object) @{
  true;
}; 

(Method integer) OnInitialize:(Instance $instance) @{
  # always for just one dialog item
  if ($instance = Sym1:) then @{
    donothing;
  } else donothing;
  0;
};

I am trying to create UI using KF, want to control with of Option Menu

 

Guide me which property value has to modified to control the width of option menu. Herewith I am attaching image and KF code snippet for reference

 

Want to achieve option menu as shown in the image Checkwidth1.jpg