Re: Migrating from Xt/Motif

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Wed, 12 Jul 2023 10:36:41 -0700 Michael Eager wrote:

ME> I'm working with a large (300+K lines) Motif program.  I'm looking for 
ME> advice on how to migrate from Motif to WxWidgets.

 Hello,

 I think you have the right idea with transitioning to wx API
incrementally, as it worked well for me on several past projects where I
migrated code using MFC to wx, but I've never done it for Motif and, to be
completely honest, I had to fix a couple of things inside wx itself to make
migrating from MFC less unpleasant, so it's not impossible that you run
into some problems with doing it for Motif too.

ME> Since WxWidgets supports Motif, is it possible to migrate code 
ME> incrementally, initially retaining most of the Motif code and replacing 
ME> it piecemeal with Wx code?

 In theory, yes, as you can get Motif widgets it uses from a wxWindow, so
you could start by just introducing wxApp, running wx event loop, and then
create wxTopLevelWindow (e.g. a wxFrame) and keep the existing Motif code
otherwise unchanged. But, again, in practice I haven't tried doing it.

 Good luck, you will probably (certainly?) need it!
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iEYEABECAAYFAmSu7ZcACgkQBupB3k9sHoZ5qQCeIUGgu441OOuVtDBDYY1gHxJL
IAYAoIkpMPQd2KLl5JwJn8uaT23nY9Wp
=ISf7
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.