Author Topic: wxWidgets help  (Read 255 times)

Offline buddyguy

  • Single posting newcomer
  • *
  • Posts: 1
wxWidgets help
« on: March 16, 2018, 08:26:11 pm »
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!

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1846
Re: wxWidgets help
« Reply #1 on: March 16, 2018, 09:06:08 pm »
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.
It is generally bad to ask such a broad question in a forum. Ask specific questions with error messages...