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());
 }
Example #2
0
 public static void Rcvd(Object sender, TabBox tabBox) {
   GfuiBtn btn = (GfuiBtn) sender;
   String key = btn.Key_of_GfuiElem();
   TabBoxMgr mgr = tabBox.Mgr();
   mgr.Select(mgr.Get_by(key));
 }