--On Monday, January 02, 2023 4:57 PM -0600 Andre F <af68...@gmail.com>
wrote:
You could lift the code into a common routine that's invoked by both the
button and hotkey handlers.
Create a helper function that takes a button, hotkey, and helper function,
and registers both handlers using lambdas.
You could then call the registration function many times, or you could make
a table of the triplets and loop through them.
--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wx-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/7B3E35A4793A11FD19EE3B01%40%5B192.168.69.69%5D.