[alt.hypertext] Guide 3 Wierdness

lac@ecs.soton.ac.uk (Les Carr) (06/12/90)

We have just started using Guide 3 on a PS/2 running Windows/3 (8Mb RAM).
Perhaps someone can help me: I am trying to automatically create a biology
dictionary from a set of text files. The structure is quite simple---
each file consists of a list of entries, each entry is a keyword and some
text. I have made a LOGiiX function which loops through the lines in the
file and creates a new Expansion Button for each entry. 

The first problem:
	How are you *supposed* to create and fill in the text for
	an Expansion Button/Expansion pair from LOGiiX? The manual is not
	at all clear on this! The only way I could do it was to:
		MakeNew(theDoc,11,keyword)	{make an expansion btn}
		theBtn:=GetFocus(theDoc);	{get a handle on it}
		theExpansion:=theBtn+1; 	{invent a handle on its expansion}
		Expand(theDoc,theBtn);		{bring up the expansion}
		SetSelection(theDoc,theExpansion,0,65535);
						{select the expansion}
		InsertText(theDoc, theBioText);	{replace the expansion's text}
		Contract(theDoc, theBtn);
	But this relies on the DUBIOUS assumption that "expansion:=btn+1"
	There *must* be a better way!

The second problem:
	About half way through the `A' entries, Guide brings up an error box
	to say it is out of memory. At that point the document is only 58K
	(when saved to disk). I am not being cavalier in creating lots of
	new variables and the program manager reports 10Mb free virtual memory
	before Guide is invoked. What *can* be going wrong????

Thanks in advance for any pointers on either of these issues.
-- 
L.Carr@ecs.soton.ac.uk               Les Carr
Tel: +44 703 593649                  Dept of Electronics and Computer Science
Fax: +44 703 593045                  University of Southampton
Telex: 47661 SOTONU G                Southampton  SO9 5NH  England