mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-31 07:12:39 -06:00
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:
parent
26d831fd5c
commit
faa74e6cba
3 changed files with 6 additions and 5 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -223,6 +223,7 @@ ToolWin::ToolWin()
|
|||
Add(close);
|
||||
close.Image(CtrlImg::cross());
|
||||
close <<= THISBACK(DoClose);
|
||||
close.Tip(t_("Close"));
|
||||
AddFrame(*this);
|
||||
Sizeable();
|
||||
FrameLess();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue