[comp.windows.x.motif] Calling actions from C

carroll@cs.uiuc.edu (Alan M. Carroll) (04/29/91)

I've looked all through the docs, but I can't find how to do this. If
I want to call an action on a widget from C (say, the Kselect on a
PushButton), how do I do that? Thanks!

-- 
Alan M. Carroll          <-- Another victim of applied metaphysics
Epoch Development Team   
Urbana Il.               "I hate shopping with the reality-impaired" - Susan

tsang@ISI.COM (Kam C. Tsang) (04/30/91)

> I've looked all through the docs, but I can't find how to do this. If
> I want to call an action on a widget from C (say, the Kselect on a
> PushButton), how do I do that? Thanks!

Use XtCallActionProc.  

Look in Intrinsic.h.  It's documented in section 10.9 of the R4
Intrinsics manual.

-kam

     ----------------------------+-----------------------------
                      Kam Tsang  |  User Interface Group
           (408) 980-1590 x 275  |  Integrated Systems, Inc.
           (408) 980-0400 [Fax]  |  3620 Jay Street
                  tsang@isi.com  |  Santa Clara, CA  94054
     ----------------------------+-----------------------------