void AddSubs(GfuiElem owner, List_adp allElemsInOwnerWin) { for (int i = 0; i < owner.SubElems().Count(); i++) { GfuiElemBase sub = (GfuiElemBase)owner.SubElems().Get_at(i); if (sub.Click_able()) allElemsInOwnerWin.Add(sub); AddSubs(sub, allElemsInOwnerWin); } }
@Override public void ctor_GfuiBox_base(Keyval_hash ctorArgs) { super.ctor_GfuiBox_base(ctorArgs); focusBorder.All_(PenAdp_.new_(ColorAdp_.Gray, 1)); Inject_(GfuiFocusXferBnd.Instance).Inject_(GfuiBtnClickBnd.Instance); this.CustomDraw_set(true); }
@Override public boolean PaintCbk(PaintArgs args) { super.PaintCbk(args); GfuiChkBox_.DrawCheckBox(this, args.Graphics()); return true; }
@Override public boolean FocusLostCbk() { super.FocusLostCbk(); this.Redraw(); return true; } // Redraw for focusBorder