mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Custom control : Fixed un-hovering for labels, which work as a hyperlinks
This commit is contained in:
parent
8af25f7771
commit
1c1b1bc019
2 changed files with 12 additions and 0 deletions
|
@ -62,6 +62,7 @@ OG_CustomCtrl::OG_CustomCtrl( wxWindow* parent,
|
|||
this->Bind(wxEVT_PAINT, &OG_CustomCtrl::OnPaint, this);
|
||||
this->Bind(wxEVT_MOTION, &OG_CustomCtrl::OnMotion, this);
|
||||
this->Bind(wxEVT_LEFT_DOWN, &OG_CustomCtrl::OnLeftDown, this);
|
||||
this->Bind(wxEVT_LEAVE_WINDOW, &OG_CustomCtrl::OnLeaveWin, this);
|
||||
}
|
||||
|
||||
void OG_CustomCtrl::init_ctrl_lines()
|
||||
|
@ -281,6 +282,16 @@ void OG_CustomCtrl::OnLeftDown(wxMouseEvent& event)
|
|||
|
||||
}
|
||||
|
||||
void OG_CustomCtrl::OnLeaveWin(wxMouseEvent& event)
|
||||
{
|
||||
for (CtrlLine& line : ctrl_lines)
|
||||
line.is_focused = false;
|
||||
|
||||
Refresh();
|
||||
Update();
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
bool OG_CustomCtrl::update_visibility(ConfigOptionMode mode)
|
||||
{
|
||||
wxCoord v_pos = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue