Skip to content
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

Ability to change the mouse cursor #2248

Open
my1e5 opened this issue Jan 8, 2024 · 1 comment · May be fixed by #2399
Open

Ability to change the mouse cursor #2248

my1e5 opened this issue Jan 8, 2024 · 1 comment · May be fixed by #2399
Labels
state: pending not addressed yet

Comments

@my1e5
Copy link
Contributor

my1e5 commented Jan 8, 2024

Dear ImGui has a function to set the mouse cursor but it's not exposed by DPG.

This feature was discussed in the Discord group (see link). The lack of ability to change the mouse cursor was a drawback when trying to create a custom adjustable splitter widget (similar to adjustable columns in tables).

User v-ein suggested:

[Such a function] would need to be bound to a widget, so that when the widget is hovered, mouse cursor changes. Not much work, but we can't add it to every widget, that would be a mess. It could be, for example, an argument to dpg.group, since a group is a pretty much universal container - we can wrap virtually anything with a group.

@my1e5 my1e5 added the state: pending not addressed yet label Jan 8, 2024
@SamuMazzi
Copy link
Contributor

Hello @my1e5, I've implemented a solution, I'll make a PR asap :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants