On Friday 13 May 2005 20:55, Synthetic Cartoonz wrote: Hi, Good to hear from you again, and Thanks very much for your response.
On Thursday 12 May 2005 22:29, Colin Carter wrote: [snip... Xt geometry management problems ...] I think it may be because the children widgets are not set up to be managed (and when you did try XtManage...() it probably just wasn't done right.) True. I tried XtCreateManagedWidget(..., XwrowColWidgetClass, ...) but XwrowColWidgetClass was not recognised. I searched throught the header files (64 bit) but could find no reference. I also tried XmCreateMenuBar(...) but the function was not recognised. I didn't deliberately install Motif, so guessed that it wasn't an automatic install by SuSE (by the way, I am using 9.1) I also tried XtCreateManagedWidget(... XwformWidgetClass, ... but no XwformWidgetClass
Do you know what I need to 'install' to 'access' the above items?
Start here: http://www.linuxforum.net/chinese/doc/motif/guide/MotifProgGuide/en_US/Xlib ,_Xt,_and_Motif.html This points to: http://www.linuxforum.net/chinese/doc/motif/guide/MotifProgGuide/en_US/Maki ng_Widgets_Visible.html#managing_widgets Here's an Xt Instrinsic FAQ containing lots of interesting factoids: http://www.cs.uu.nl/wais/html/na-dir/Xt-FAQ.html Most discussion I found about geometry management seem to make their way to the window manager (Motif), so here's something about that: http://www.linuxforum.net/chinese/doc/motif/guide/MotifProgGuide/en_US/Mana ging_Geometry.html If you are using Motif, this has some examples, that includes one that manages a ton of buttons on an xmRowColumnWidget: http://www.oreilly.com/catalog/motifref2/vol6a/Vol6a_html/ch02.html This is part of a FAQ that discusses why Xt widgets can do weird things with size, again it also uses Motif: http://www.faqs.org/faqs/motif-faq/part4/section-16.html
Thanks for the references - I will get back to you in 2007 when I've finished reading them. :-) Seriously, I will never get through this lot, but they are a great resource, and I will get started. I am concerned about using Motif: I am still under the impression that Motif is proprietary software. (Am I correct in assuming that code written using Motif resolves to only calling the user's X11 routines? ) I feel that I would be happy enough just using the X, Xt, Xaw and Xw functions. I am using: gcc MyProg.c -o MyProg -I/usr/X11/include -lXt -lX11 -L/usr/X11/lib64 -L/usr/X11/include/Xw -lXaw -L/usr/X11R6/lib/ -lm Does this look okay, or have I over-done things/redundancy? And what is Xaw3d ? Thanks for your help. Regards, Colin