CtrlLib: ToolButton fixed initial tip iissue

git-svn-id: svn://ultimatepp.org/upp/trunk@6925 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-02-16 18:24:28 +00:00
parent 26d831fd5c
commit faa74e6cba
3 changed files with 6 additions and 5 deletions

View file

@ -468,7 +468,7 @@ protected:
public:
operator int64() const { return GetSize(); }
void Open() { ptr = buffer; size = 0; }
void Open() { ptr = buffer; size = 0; ClearError(); }
SizeStream();
};

View file

@ -54,10 +54,6 @@ ToolButton::~ToolButton() {}
void ToolButton::Reset()
{
Tip("");
Help("");
Topic("");
Description("");
repeat = false;
accel = 0;
checked = false;
@ -65,6 +61,10 @@ void ToolButton::Reset()
minsize = Size(0, 0);
maxiconsize = Size(INT_MAX, INT_MAX);
style = &StyleDefault();
Tip("");
Help("");
Topic("");
Description("");
}
void ToolButton::UpdateTip()

View file

@ -223,6 +223,7 @@ ToolWin::ToolWin()
Add(close);
close.Image(CtrlImg::cross());
close <<= THISBACK(DoClose);
close.Tip(t_("Close"));
AddFrame(*this);
Sizeable();
FrameLess();