Example #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 static TabBoxEvt_orderChanged Handle(GfsCtx ctx, GfoMsg m) {
   TabBoxEvt_orderChanged rv = new TabBoxEvt_orderChanged();
   rv.curIdx = m.ReadInt("curIdx");
   rv.newIdx = m.ReadInt("newIdx");
   return rv;
 }
 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);
 }