示例#1
0
 public static void Rcvd(TabBox tabBox, GfsCtx ctx, GfoMsg m) {
   TabPnlItm itm = (TabPnlItm) m.CastObj("v");
   GfuiBtn btn = GfuiBtn_.as_(tabBox.BtnBox().SubElems().Get_by(itm.Key()));
   if (btn
       != null) // HACK: check needed b/c Gfds will raise UpdateCaption event before Creating tab
   btn.Text_(itm.Name()).TipText_(itm.Name());
 }
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, GxwElem_lang.AlignH_cmd)) AlignH_(GfuiAlign_.cast(m.CastObj("v")));
   return txt_box.Invk(ctx, ikey, k, m);
 }