mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
RichEdit: Fixed cosmetics issue with Diagram shape icons in droplist
This commit is contained in:
parent
f29a9f2b96
commit
fef58bbcb8
7 changed files with 48 additions and 33 deletions
|
|
@ -599,13 +599,18 @@ Rect MultiButton::Paint0(Draw& w, bool getcr)
|
|||
return cr;
|
||||
}
|
||||
|
||||
Rect MultiButton::GetContentRect()
|
||||
{
|
||||
NilDraw nw;
|
||||
return Paint0(nw, true);
|
||||
}
|
||||
|
||||
void MultiButton::SyncInfo()
|
||||
{
|
||||
if((HasMouse() || info.HasMouse()) && display &&
|
||||
(GetMouseFlags() & (K_MOUSELEFT|K_MOUSERIGHT|K_MOUSEMIDDLE)) == 0) {
|
||||
Point p = GetMouseViewPos();
|
||||
NilDraw nw;
|
||||
Rect r = Paint0(nw, true);
|
||||
Rect r = GetContentRect();
|
||||
if(r.Contains(p)) {
|
||||
Value v = convert->Format(value);
|
||||
int cm = DPI(2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue