RE: wrapping wxWindows

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi jbrown,

This I'm sure can be done, but with a huge amount of work.

David Cuny would be the one to ask specific questions of as he has
wrapped alot of the wxWindows objects into his Basic interpreter
(wxbasic.sourceforge.net).
He has done it in a way that "almost" works automatically. 

I had tried a couple of times to do it manually but failed to get
to grids with wxWindows programming.

I got along way down the path of doing the same type of things with
FLTK and the Fox GUI toolkits.
FLTK is C "friendly" which makes things easier (ie. users callbacks
for events - which is easy to wrap in Euphoria callbacks).
The Fox GUI toolkit uses a similiar event loop to wxWindows which
means you have to write a C wrapper before you can connect it to 
Euphoria (lots of work). 

I'm certain it's all possible but does take alot of work.

When I struggle just to get these libraries compiled I realise that 
I'm not prepared to put the huge amount of effort in writting C and C++
code to get the payback for Euphoria.

I think it would be a fantastic project for someone!!!!
I beleive "good" wxWindows support would make Euphoria an excellent
tool to develop cross platform GUI apps with!
 
Regards,


Ray Smith
http://rays-web.com

 
> I realize that wxWindows is a C++ lib, so its not directly compatible 
> for
> Euphoria.
> 
> However, I once considered wrapping Qt for Euphoria (Qt is another C++ 
> lib,
> used by such things as Opera and KDE), and I was going to do this by 
> cheating.
> 
> There is a library, QtC, which wraps the C++ calls to Qt in normal C 
> functions,
> which, in turn, can be easily wrapped in Euphoria.
> 
> ("control::function(...)" becomes "controltype_function(control, ...)" 
> for
> example.)
> 
> I was wondering why this hasn't been done for wxWindows, however.
> 
> If this approach would work for wxWindows, then that would make it 
> wrappable
> in Euphoria.
> 
> Can anyone think of a reason why this approach wouldn't work?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu