[comp.windows.x.motif] a few questions

costant@scvs3.CSELT.STET.IT (09/19/90)

Hello there,

I'm relatively novice to Motif and I'm developing the User Interface
  of an application using
  UIL in Motif 1.0.a under VaxStations Ultrix V3.1
  I have a few questions and problems that maybe someone can help with.

  I have a widgets layout like this:
     _________________
     | R |           |
     | o |  Drawing  |
     | w |   Area    |
     | C |           |
     | o |           |
     | l |___________|
     | u |           |
     | m |   Text    |
     | n |           |
     -----------------

1) There are several widgets of different and unknown width
     that I would like to order centered in one column.
     I tried to use the RowColumn widget setting various
     resources but the children appear always left aligned.
     (as a minimun I would like to center the Labels inside
     the PushButtons)
     How can I do?


2) My application needs two buttons (Start and Stop) working
     simply as follows: when the user pushes the Start button
     a function (let's call it do_work)
     is called starts working possibly for a long time
     and when the user pushes the Stop button the do_work function
     should be able to stop itself as soon as it can.
     The two buttons should always be visible
     and not overlapping the DrawingArea or Text widgets
     (see the layout given above).
     How could be enabled the input on the Stop button when
     the do_work function is still working?

3) What is the first moment (or, better, the right)
     when I can get the Window identifier of my DrawingArea widget?
     I tried setting a CreateCallback for that widget
     and using the XtWindow function inside it, but it returns always 0.

        Thank you,  Gian Paolo Costantino
                    costant@scvs3.cselt.stet.it