What does the " XmRegisterConverters(); " call do?
I haven't had any success finding out what it does.
Please tell me. I would appreciate it if you could
email the answer because I am 3000 messages behind
on this NEWS group. Thanks! I will post the
answers I get if there is enough interest.
Thank you again!
Strange, I find no mention of XmRegisterConverters() in
my Motif documentation. As a guess I would say that it
would register 1 or more Resource type converters. However,
I don't see any documentation for this. Maybe you are at
a higher release level than I am.
Patrick L. Mahan
--- TGV Window Washer ------------------------------- Ma...@TGV.COM ---------
Be wary of strong drink. It can make you shoot - Lazarus Long
at tax collectors -- and miss. From the Notebooks of
It's not documented because it's an internal call that should have had
an _ in front of it. It does exactly what it says, but Motif already
calls it, so you don't have to. And even if you did (perhaps because
you wanted to force Motif to register converters before creating widgets)
you wouldn't accomplish what you planned unless you called a second call
which *does* have an _ in front of it.
XtAddConverter(XtRString, XtRPixmap, CvtStringToPixmap, &widgetConvertArg, 1);
XtAddConverter (XmRString, XmRGadgetPixmap, CvtStringToGadgetPixmap, &gadgetConvertArg, 1);
That's the dangerous path of course. You'd be better off creating one
instance of a primitive and a composite widget and then deleting them.
That has the same effect.
Alfalfa Software, Inc. | Poste: The EMail for Unix
naz...@alfalfa.com | Send Anything... Anywhere
617/497-2922 | in...@alfalfa.com
I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
I'd also like to know why it isn't documented. My experimentation suggests
that calling XmRegisterConverters is the only way to actually register all of
the defined Motif type converters. Without this call, it doesn't seem
possible to have an entry in the XtResource struct allowing the user to
specify a fontList for the application (an XtRString to XmXmFontList converter
isn't automatically registered).
Am I confused or is this simply a documentation bug?
P.S. Doug Young's Motif book lists many Motif type converters, but says
says nothing about how to use them in a program.
Or use XtInitializeWidgetClass to avoid needlessly
creating/destroying a widget.
Andrew Wason Bell Communications Research
a...@bae.bellcore.com Piscataway, NJ