Ejemplo n.º 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());
 }
Ejemplo n.º 2
0
 public void Inject(Object owner) {
   GfuiBtn btn = GfuiBtn_.cast(owner);
   IptBnd_.cmd_to_(
       IptCfg_.Null, btn, this, MovePrev_cmd, IptKey_.add_(IptKey_.Ctrl, IptKey_.Left));
   IptBnd_.cmd_to_(
       IptCfg_.Null, btn, this, MoveNext_cmd, IptKey_.add_(IptKey_.Ctrl, IptKey_.Right));
 }
Ejemplo n.º 3
0
 public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
   if (ctx.Match(k, MoveNext_cmd)) MoveTab(GfuiBtn_.cast(ctx.MsgSrc()), 1);
   else if (ctx.Match(k, MovePrev_cmd)) MoveTab(GfuiBtn_.cast(ctx.MsgSrc()), -1);
   else return Gfo_invk_.Rv_unhandled;
   return this;
 }