[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

39.0. "Compound string structure?" by TOWNS::SIMMONS () Thu Jan 26 1989 19:41


I have an application in which it would be nice to access the text field of 
a compound string directly.  Essentially, I would like to do something along
the lines of the following:

       ...

       static char *text;
       static DwtCompString current_drink;

       ...

       current_drink = DwtLatin1String("Apple Juice");

       ...

       text = current_drink.text;

Is this sort of thing possible?  Assuming that a compound string is stored in 
a structure of some sort, could someone please post what this structure looks 
like?


	Thanks,

		Rob

T.RTitleUserPersonal
Name
DateLines
39.1DwtGetNextSegment?WINERY::ROSEThu Jan 26 1989 22:439
    a) This kind of question is more suited for 
    harbor::decwindows_programming. 
                                   
    b) You've seen DwtGetNextSegment?
    
    c) Maybe you are trying to modify the contents of a compound string,
    e.g. changing "Apple Juice" into "Orange Juice", but without creating a
    new string? This seems not to be allowed... 

39.2Not allowedLEOVAX::TREGGIARIFri Jan 27 1989 07:408
    Looking inside a compound string is explicitly forebidden.  The
    internal structures may very well change in the future, especially
    because of attempts at standardization going on.  For now,
    the only guarantee for upward compatibility is to stick with the
    routines supplied.
    
    Leo

39.3GOSOX::RYANDECwindows MailFri Jan 27 1989 08:5210
	re .0: See the Toolkit Routines Reference Manual, chapter 5.

	re .to_whom_it_may_concern: This question is asked at least
	once a week, which suggests that it needs to be better documented.
	Maybe an example should be put in the Guide to Application
	Programming? At least put an example in the compound string
	chapter of the Toolkit Routines Reference Manual.

	Mike

39.4ABSZK::GREENWOODTim. Asian Base SystemsWed Feb 01 1989 10:345
    In HARBOR::DECWINDOWS_PROGRAMMING note 59 I have asked what compound
    string access routines are requested. 
    
    Tim