buzzdx Posted August 27, 2021 Share Posted August 27, 2021 In my project I created a button to delete items. When the button is pressed and the item gets deleted the button will be turned off/disabled. Since the mouse is still over the button when it gets disabled, the button will then keep its blue border even when the mouse moves out of it afterwards. So it seems like it's not detecting the loss of focus while being disabled. However, it will lose the stuck border as soon as I click on anything else in the window. I tried this to overcome the problem: // first try to fix it btn->SetState(false); btn->Redraw(); // trying to emit the mouseleave, but I think it can't get handled before the next line of code. either way has no effect. EmitEvent(Event(EVENT_MOUSELEAVE, btn)); btn->Disable(); // try to fix and redraw after disabling, no effect btn->SetState(false); btn->Redraw(); but nothing worked so far. Link to comment Share on other sites More sharing options...
Solution Josh Posted August 27, 2021 Solution Share Posted August 27, 2021 Fixed for the next build, thank you. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts