[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

2992.0. "Where are PASCAL definition for XtActionsRec?" by TAV02::GAN () Tue Jun 26 1990 07:28

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.RTitleUserPersonal
Name
DateLines
2992.1dwt$action_list is defined as $defptrCSC32::B_KEMPX'ed out TopFliteMon Jul 09 1990 10:4514
  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