diff --git a/uppsrc/CtrlCore/CtrlCore.h b/uppsrc/CtrlCore/CtrlCore.h index 48da92eb9..e7c98d0a5 100644 --- a/uppsrc/CtrlCore/CtrlCore.h +++ b/uppsrc/CtrlCore/CtrlCore.h @@ -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; } diff --git a/uppsrc/CtrlCore/src.tpp/Ctrl$en-us.tpp b/uppsrc/CtrlCore/src.tpp/Ctrl$en-us.tpp index 942097138..c2c7aa600 100644 --- a/uppsrc/CtrlCore/src.tpp/Ctrl$en-us.tpp +++ b/uppsrc/CtrlCore/src.tpp/Ctrl$en-us.tpp @@ -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;%- &] diff --git a/uppsrc/CtrlLib/TreeCtrl.h b/uppsrc/CtrlLib/TreeCtrl.h index 46991968d..3ef655605 100644 --- a/uppsrc/CtrlLib/TreeCtrl.h +++ b/uppsrc/CtrlLib/TreeCtrl.h @@ -402,7 +402,7 @@ public: virtual Value GetData() const; private: - PopUpTree tree; + PopUpTree tree; const Display *valuedisplay; DisplayWithIcon icond; int dropwidth;