News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

wxWidgets help

Started by buddyguy, March 16, 2018, 08:26:11 PM

Previous topic - Next topic

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.

QuoteAny direction on how to accomplish this would be greatly appreciated.
It is generally bad to ask such a broad question in a forum. Ask specific questions with error messages...