*CtrlLib: TreeCtrl::Insert fix, *CtrlCore: constness issues

git-svn-id: svn://ultimatepp.org/upp/trunk@2883 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-12-02 14:13:06 +00:00
parent b288c81e29
commit 3e4b80795c
3 changed files with 5 additions and 4 deletions

View file

@ -1180,7 +1180,7 @@ public:
bool SetWantFocus();
Ctrl& InitFocus(bool ft = true) { initfocus = ft; return *this; }
Ctrl& NoInitFocus() { return InitFocus(false); }
bool IsInitFocus() { return initfocus; }
bool IsInitFocus() const { return initfocus; }
Ctrl *GetFocusChild() const { return HasChild(FocusCtrl()) ? ~FocusCtrl() : NULL; }
Ctrl *GetFocusChildDeep() const { return HasChildDeep(FocusCtrl()) ? ~FocusCtrl() : NULL; }
@ -1230,7 +1230,7 @@ public:
Ctrl& TransparentBackPaint() { backpaint = TRANSPARENTBACKPAINT; return *this; }
Ctrl& NoBackPaint() { return BackPaint(NOBACKPAINT); }
Ctrl& BackPaintHint();
int GetBackPaint() { return backpaint; }
int GetBackPaint() const { return backpaint; }
Ctrl& Transparent(bool bp = true) { transparent = bp; return *this; }
Ctrl& NoTransparent() { return Transparent(false); }
bool IsTransparent() const { return transparent; }

View file

@ -1877,7 +1877,8 @@ ckPaint]()&]
[s7;i1120;a17; [*/ Return value]-|BackPaint(NOBACKPAINT).&]
[s3;%- &]
[s4;%- &]
[s5;:Ctrl`:`:GetBackPaint`(`):%- [@(0.0.255) int]_[* GetBackPaint]()&]
[s5;:Ctrl`:`:GetBackPaint`(`)const:%- [@(0.0.255) int]_[* GetBackPaint]()_[@(0.0.255) const
]&]
[s7;i1120;a17; [*/ Return value]-|Current back`-paint mode of Ctrl.&]
[s3;%- &]
[s4;%- &]

View file

@ -402,7 +402,7 @@ public:
virtual Value GetData() const;
private:
PopUpTree tree;
PopUpTree tree;
const Display *valuedisplay;
DisplayWithIcon icond;
int dropwidth;