🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #36928

sozobon with gemfast libraries

#36928
From: Andy Gray
Date: Mon, 06 Mar 1989 09:01
46 lines
2228 bytes
Has anyone tried writing programs with Sozobon in conjunction with the GEMfast
libraries yet? If so, have any problems with the AES library come to light. I
have just cobbled together a quick program which has stood on it's head. The
main problem seems to be within the 'form_alert' usage

	#define NO_DEFAULT 0
	...
	appl_init();
	...
	switch(form_alert(NO_DEFAULT,"[1][Hello World][SHOW|PRINT|CANCEL]")) {
	case 0:
		/* show */
		break;
	case 1:
		/* print */
		break;
	case 2:
		/* cancel */
		break;
	default:
		/* how does this get invoked? */
	}
	...
	appl_exit();

	This cameo example should return 0, 1, or 2 according to the selected
option. Hitting 'PRINT', however, inevitably returns 2, 'CANCEL' defaults etc
!!!. The main text string is irksome, apparently not handling the text bounded
by '|' properly. I'm sure these problems would have been noticed during
testing, so where have I gone wrong. (The Megamax manual quotes that the text
message can contain '4 lines of 32 characters each' and in the following line
'5 lines of 32' characters. The DR GEM-AES manual states '5 lines of 40
characters' the total not exceding 200 characters.)

	What did I, rather than GEMfast, do wrong?

	Andy Gray

----------------------------------------------------------------------------
E-Mail (UUCP)   AGray@axion.bt.co.uk ...!ukc!axion!AGray
Organisation	UNIX Operating System Support and Development Group
		British Telecom Research Laboratories (RT3134)
Snail Mail	BTRL, Rm G23 B68, Martlesham Heath, IPSWICH IP5 7RE, UK
Telephone	+44 473 646647
Quote		"Hey - somebody's crept in here and committed a neatness!"
----------------------------------------------------------------------------
Technical Details
Message-ID: <1167@zaphod.axion.bt.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!axion!eriskay!agray

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!axion!eriskay!agray
From: agray@eriskay.axion.bt.co.uk (Andy Gray)
Newsgroups: comp.sys.atari.st
Subject: sozobon with gemfast libraries
Message-ID: <1167@zaphod.axion.bt.co.uk>
Date: 6 Mar 89 09:01:45 GMT
Sender: news@axion.bt.co.uk
Reply-To: agray@axion.bt.co.uk
Lines: 46
Organisation: British Telecom Research Labs, Martlesham Heath, IPSWICH UK