On Saturday 14 May 2005 01:49, synthetoonz@bellsouth.net wrote:
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.
Do you know what I need to 'install' to 'access' the above items? To get motif development I had to install openmotif via Yast. It was on
My second guess at what's going on "wrong". I think maybe it isn't working as wrong as you think. I've seen other "production" X programs that have the behavior of resizing buttons with the "window" . Generally, it appears most people use something above Xt (like motif) as the geometry manager. motif supplies a number of controls for the widgets placement, alignment, size, gravity, etc. I think you are right. I have Douglas Young's book (as on the first reference you gave me) and it only uses X and Xt. But he includes the aforementioned calls ??? In particular he uses the XwrowColWidgetClass to make a main menu. Crazy thing is that my big buttons (main menu) invoke the sub-menu correctly, but if I move the Realize() function the submenu appears laid out horizontally instead of vertically. Perhaps you are right in that I should try gravity, and try to dig up the info on alignment (forgotten where that is, but I think it is in Resources). the 9.2 DVD. 9.1 should have this, or lesstif. Thanks for this hint - I'll look for it.
(Am I correct in assuming that code written using Motif resolves to only calling the user's X11 routines? )
The libraries linked to the program handle the Xm functions which call the Xt and X functions. Assuming the libraries are statically linked, it should have everything self contained, so it should run anywhere any X client could run. (In other words, a program using motif libraries should not be dependant on running under the motif window manager. At work I run a modeling/simulation program written for motif under Open Look. ) Thanks for this information/confirmation.
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?
I can't address the right now at work. It might help if I had the entire program to compile on my setup. Tomorrow I'll send it to you direct. I THINK that is Xaw with a 3D look (border hilights). I do know I've read you shouldn't mix Xaw and Xaw3D. I've also heard Xaw doesn't play well with others. Okay, I'm happy to have one less thing to think about.
Bed time for me now (3.04am in Sydney) Thanks for the feedback - much appreciated. Colin