comp.lang.ada
 help / color / mirror / Atom feed
* Using Motif/AXI XmStringTable in ADA
@ 1997-02-20  0:00 James Rice
  1997-02-21  0:00 ` Christopher Green
  1997-02-22  0:00 ` Nigel J. Tracey
  0 siblings, 2 replies; 3+ messages in thread
From: James Rice @ 1997-02-20  0:00 UTC (permalink / raw)



Sorry if this is a stupid question, or not phrased well, I am not very 
experienced with ADA or the AXI bindings.  I do know Motif though.

I am having a problem converting a Motif type to ADA, I am utilizing AXI Motif 
bindings.  I want to get all selected items from a Listbox widget.  Motif in C 
would return a StringTable, which is a pointer to some number of XmStrings, 
which I can traverse like an array, accessing the indivual strings.  With the 
bindings, I am returned a pointer, but how do I use it?  The relationship 
between pointers and arrays, is definitely not the same in ADA as it is in C.  
My question is, how do I get to the individual XmStrings in ADA.  Once I get a 
XmString, the AXI version of StringGetLtoR( ) will convert the XmString to an 
ADA String, so that is no problem.  

Thanks in advance for any help,
Jim.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-02-22  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-20  0:00 Using Motif/AXI XmStringTable in ADA James Rice
1997-02-21  0:00 ` Christopher Green
1997-02-22  0:00 ` Nigel J. Tracey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox