Porting a Motif1.2 application onto Motif2.1

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
Porting a Motif1.2 application onto Motif2.1

Submitted by Anonymous on Tue, 04/30/2002 - 08:49. Developers
Hi,

I have a Motif application which is developed using Motif1.2 . I need to port the application onto
Motif2.1 . Can anybody please provide me the type of APIs i need to change in my application.
Please provide some pointers how to do this???

regds,
vara

Anonymous

I am doing exactly the same thing. So far only problem has been the behavoir of
my scrolled windows - see first line in scrolled window some 4 or 5 below your posting.

I am trying to mantain both sources on 1.2 and 2.2 and want them to be identical.

Anonymous

Hi all,

For documentation I`m using
1) "The Motif Reference Manual" (free off O`Reilly)
2) SGI`s Insight Developer`s documentation (has Xt and Xm)
(some universities graciously allow public access to this)
3) manpages, other linux documentation

I think I read your post. The new way fonts are supported is somewhat compatible with the old way - and in some situations the old way should still work directly.

Infact - the way I read it - you should *not* (be required) to make code changes unless the Motif Manual specifically says you should. This might mean there is something else amiss.

Anonymous

Oh yea.

First make sure

a) have the fonts that its complaining are missing
b) you can see them with `/usr/X11R6/bin/xfontsel`
(your font server is awake and sees the font)

If you need to change the font fonts can be _requested_ by an Xm app either through API directly or by the X resource database (which allows the user to change the default font after market much like a registy except that it more often works, less often crashes, and is more powerfull). For the xrdb to work you have to request the entry from the xrdb and use it in the code - this is simple and can be cut/pasted from a demo). xrdb entries can be gotten from lib/X11/app-defaults, $HOME/.Xdefaults, etc...