Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improve node selection handling in language panels #1380

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Conversation

Randalphwa
Copy link
Collaborator

This PR creates special functions for handling a selected node when one of the Language panels is displayed. Using functions means there can be a lot more logic for specific nodes such as Image List images and Ribbon tools and buttons. Otherwise, the main search functions would become increasingly long and complex, making it harder to find the code for handling a specific node type.

Closes #1377

For C++ panels, this will find the function used to load the image.

For Python and Ruby panels, this will find the variable of the selected image.
For Ribbon tools, this avoids selecting a wxToolBar tool by mistake if there is
one in the same form with the same artwork.
@Randalphwa Randalphwa merged commit 23fcaa8 into main Jan 15, 2024
@Randalphwa Randalphwa deleted the selection branch January 15, 2024 02:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Incorrect code panel scrolling when ribbon tool is selected
1 participant