Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
wxWidgets help
(1/1)
buddyguy:
Good day,
I'm new to code::blocks plugin development and wxWidgets. I've been reading up on wxWidgets events and event handler tutorials and read some source code for code::blocks plugins but they haven't helped as much as I would have liked.
I've created a gui interface with no problems, but I'm not sure how to have functions in my Plugin.cpp listen for events that happen in my frameGUI.cpp.
Specifically, I need a function in my plugin to grab data from the GUI when a button in the GUI is clicked and I'm not sure how to do that. Any direction on how to accomplish this would be greatly appreciated. Thanks!
BlueHazzard:
It is exactly the same as if you would write a standard wxWidgets application. Either with static event table or with the connect function...
I would try to make a "dummy plugin" as stand alone application and if this works you can c&p the code in the plugin dialog code.
You can use the standard wxSmith project to test it.
--- Quote ---Any direction on how to accomplish this would be greatly appreciated.
--- End quote ---
It is generally bad to ask such a broad question in a forum. Ask specific questions with error messages...
Navigation
[0] Message Index
Go to full version