mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Fixed issue with ToolTip and the same tip
git-svn-id: svn://ultimatepp.org/upp/trunk@7370 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
84ebc521c3
commit
ee2bf3cffb
1 changed files with 5 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
NAMESPACE_UPP
|
||||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
#define LLOG(x) DLOG(x)
|
||||
|
||||
ToolTip::ToolTip()
|
||||
{
|
||||
|
|
@ -68,10 +68,10 @@ void ShowToolTip()
|
|||
String text = tipctrl->GetTip();
|
||||
LLOG("-> showing tip: " << text << " tipctrl: " << UPP::Name(tipctrl));
|
||||
Ctrl *top = tipctrl->GetTopCtrl();
|
||||
if(!text.IsEmpty() && top && (top->IsForeground() || top->IsPopUp())) {
|
||||
ToolTip& q = AppToolTip();
|
||||
q.Set(text);
|
||||
if(text.GetCount() && top && (top->IsForeground() || top->IsPopUp())) {
|
||||
LLOG("-> foreground");
|
||||
ToolTip& q = AppToolTip();
|
||||
q.Set(text);
|
||||
Size sz = q.GetMinSize();
|
||||
Rect r = Ctrl::GetMouseWorkArea();
|
||||
Point p = GetMousePos() + Size(0, 22);
|
||||
|
|
@ -84,7 +84,7 @@ void ShowToolTip()
|
|||
}
|
||||
LLOG("-> background / empty text, top = " << UPP::Name(top));
|
||||
}
|
||||
SetTimeCallback(200, callback(EndShowMode), (void *)EndShowMode);
|
||||
SetTimeCallback(500, callback(EndShowMode), (void *)EndShowMode);
|
||||
}
|
||||
|
||||
void SyncToolTip(Ctrl *ctrl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue