KeyWorksRW / wxUiEditor

RAD tool used to create and maintain wxWidgets UI elements.
Apache License 2.0
62 stars 5 forks source link

Change widget type #1451

Closed Randalphwa closed 3 months ago

Randalphwa commented 3 months ago

This PR expands what gets copied when the context menu from the Navigation Panel is used to change one type of a widget to another. The new behavior will copy the var_name if the node has class access and all identical events will have any declared handlers copied.

A special case is made when converting a wxComboBox to a wxChoice -- in this case any handler declared for wxEVT_COMBOBOX will be copied as a handler for wxEVT_CHOICE.

These changes are related to #1447 -- this should make it easier to switch read-only wxComboBoxes to wxChoice without having to change any of the underlying code.