-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blue border around uneditable textbox #656
Comments
This blue border is displayed when the textbox gets focused, either by hovering or clicking. The border is added in two different places.
The first option is easy to fix, you just need to call the function below when you set editable to false. api::effects_edge_nimbus(textbox, effects::edge_nimbus::none); If you wanted to restore the original behaviour you would need to call the above function twice with different parameters (when editable is set back to true). api::effects_edge_nimbus(textbox, effects::edge_nimbus::active);
api::effects_edge_nimbus(textbox, effects::edge_nimbus::over); As for the second border there is currently no way to remove it. But most the code is already in place. |
That's the one I was talking about, thanks for the info. Not sure what could be done about it, but now at least I know what's happening. |
I have created a pull request for this (#659). Which add a new function When it gets merged you will be able to do something like this: form fm;
textbox tb{ fm };
// disable the hovering focus border
api::effects_edge_nimbus(tb, effects::edge_nimbus::none);
// disable the clicked focus border
tb.enable_border_focused(false);
// do stuff here........
// enable the hovering focus border
api::effects_edge_nimbus(textbox, effects::edge_nimbus::active);
api::effects_edge_nimbus(textbox, effects::edge_nimbus::over);
// enable the clicked focus border
tb.enable_border_focused(true); |
I'm not sure what the blue border is supposed to indicate, but it probably shouldn't be displayed when the textbox is uneditable. Currently it happens when the user clicks on an uneditable textbox (and maybe it's also correlated with the text changing, I don't know). I've looked at the code to see why it happens, but haven't been able to find anything.
The text was updated successfully, but these errors were encountered: