Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
I have a question on DECW programming. One of our customer is trying to create a popup menue. He read the "DECW guide to application" pp 6-27 example. It uses there the data structures "XtActionsRec" and "XtActionsProc". The problem is that he uses PASCAL. He can not find any definition file for these data structures. Can someone there point me to the correct PASCAL definition file supplied in DECWINDOWS? Thanks in advance Ofer Gan
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2992.1 | dwt$action_list is defined as $defptr | CSC32::B_KEMP | X'ed out TopFlite | Mon Jul 09 1990 10:45 | 14 |
Sorry I did not see this sooner. The Pascal inherit source has the action_list parameter to Xt$Add_actions defined as type dwt$action_list. Dwt$action_list is of type $DEFPTR which is a pointer to $DEFTYP which is of type INTEGER. All are [UNSAFE]. See SYS$LIBRARY:DECW$DWTDEF.PAS. Declare the action_rec as a RECORD with 2 integer fields. The first will be a pointer to the routine name string (null terminated) and the second will be a pointer to the action routine. The action_list to Xt$Add_Actions will be a pointer to an array of these action_recs. Appendix C of the Guide to Application Programming in the Decwindows documentation has the C format of an actions_rec. In Pascal and FORTRAN, you have to roll your own. Bill |