interfacing with builder created gui code?

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
soundhound
In need of some credit
In need of some credit
Posts: 7
Joined: Tue Jun 19, 2018 1:05 pm

interfacing with builder created gui code?

Postby soundhound » Sun Jul 22, 2018 10:26 pm

hello folks,

I'm updating a language binding to WxW at the moment and translating a couple of the samples.
and contemplating the use of a gui builder and the means of interacting with its output.

here's how I would 'like' a gui builder to work:
o create an interface with a mature C++ builder.
- I specifically don't want to have to embed source code snippets through the builder
- rather, specify symbols/function names to be called, or give specific names to a gui generated entry point
- to get type safety, header file supplied by user or generated for inclusion in user code to match above
o user writes C/C++ stubs whose compiled objects will link with the monolithically built gui object file
o the stubs provide input to a controlling language runtime event loop

is this at all how they work in practice? :idea:

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2674
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: interfacing with builder created gui code?

Postby ONEEYEMAN » Mon Jul 30, 2018 4:30 pm

Hi,
You can try to look at wxGlade (it is written in wxPython) and see how it operates.

Thank you.

soundhound
In need of some credit
In need of some credit
Posts: 7
Joined: Tue Jun 19, 2018 1:05 pm

Re: interfacing with builder created gui code?

Postby soundhound » Wed Aug 01, 2018 7:06 pm

thanks but a quick look at the intro suggests wxglade is interface design only, not about hooking the generated code into one's application.
I was hoping for some insights here into how these tools in general facilitate the latter activity.

DavidHart
Site Admin
Site Admin
Posts: 3765
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: interfacing with builder created gui code?

Postby DavidHart » Wed Aug 01, 2018 7:20 pm

Hi,

Some Form Designers embed their code into yours. Others create a 'base' class for the gui. You then derive from that, so your code is separate.

I use wxCrafter (with CodeLite) that uses the second method. wxFormbuilder does, or can be told to do, much the same. See https://wiki.wxwidgets.org/Tools for a list of IDEs/RADs.

Regards,

David


Return to “General Development”

Who is online

Users browsing this forum: No registered users and 2 guests