mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: ArrayCtrl::CreateCtrl<T> #719
git-svn-id: svn://ultimatepp.org/upp/trunk@7083 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4e6be6e382
commit
b95007cd32
2 changed files with 17 additions and 195 deletions
|
|
@ -538,6 +538,8 @@ public:
|
|||
|
||||
void SetCtrl(int i, int col, Ctrl& ctrl, bool value = true);
|
||||
Ctrl *GetCtrl(int i, int col);
|
||||
template <class T>
|
||||
T& CreateCtrl(int i, int col, bool value = true) { T *c = new T; SetCtrl(i, col, c, true, value); return *c; }
|
||||
|
||||
ArrayCtrl& SetLineCy(int cy);
|
||||
void SetLineCy(int i, int cy);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue