poladiag@gemma.cs.rpi.edu (Grant Poladian) (06/20/91)
I`m working on a project and I need to design a widget to my needs. I've siphening through the Xlib, Xt and Athena stuff to get a grip on what is going on. But I have some questions which I think are key to filling in some gaps. 1) The constraint widget calls a procedure in its class_part_initialize field which compiles the XtResource list specified in the constraint part of the class record. It calls the procedure XrmCompileResourceList(/*XtResourceList*/,/*num_resources*/) Since constraint does not have declare its own resources in its private .h, public .h, and .c files I assume that the function is meant to be called by the subclasses of the constraint widget - who just might have resources of their own (like the Form widget). Nod once if I'm on the right track. Twice if I'm way off base. Why does the core widget not compile its resources anywhere. I looked at the Core.c file and even though several resources were declared in a XtResource structure never were they referenced of initialized like the constraint resource does. What is going on? 2) As mentioned above the Constarint widget compiles its resources (well not its resources - but you know what I mean). What is going on when this compilation takes place? 3) The form widget has several resources that can be used by its CHILDREN. How does it do this? I looked at the code and I noticed it did a lot of Quark conversions and so one. If anyone has some info please let me know, post it or mail - I dont care. If you do mail it be sure to mail it to poladiag@turing.cs.rpi.edu - I wont get your mail if you send it to the address in the header. Thank you all for any help, Grant