home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
No Fragments Archive 12: Textmags & Docs
/
nf_archive_12.iso
/
MAGS
/
TEXTMAGS
/
ATARI16
/
INFO89.ZIP
/
INFO89
/
788.TXT
< prev
next >
Wrap
Text File
|
1997-04-16
|
9KB
|
207 lines
=========================================================================
INFO-ATARI16 Digest Mon, 11 Dec 89 Volume 89 : Issue 788
Today's Topics:
AES bug?
Anybody tried to compile SOZOBON C under MS-DOS ?
Doesn't work
Games for ST
Missing AR.H from Sozobon C
MODULA-2 Factor Help!!
Shareware MAC
tv show and the Mega ST
Wanted: Restaurant Management SW
----------------------------------------------------------------------
Date: 11 Dec 89 12:08:04 GMT
From: bucsb!harryk@CS.BU.EDU (_harryk)
Subject: AES bug?
Message-ID: <138@bucsb.UUCP>
Have I found an AES's bug or i don't know what i'm doing?
Here is the problem:
I'm writing an ST application which is supposed to use KEYBORD-
EQUIVALENTS for almost every entry of the menus. So, (naturaly?)
i'm using the function evnt_multi() in order to handle MESSAGE
and KEYBOARD events. The thing works ok except one annoying pro-
blem:
If i press a key-equivalent, while any of the pull-down
menus is open, i'm getting the action that corresponds to
that keyboard-equivalent( i.e using the mouse i open the 'File'
menu and i place the mouse pointer on the entry 'Open', which
is becoming "selected"....now, instead of clicking on 'Open',
I press Ctrl-A (which is the equivalent for 'About xxxx' under
the menu title 'Desk'). Well, what happens is that the dilogue
box for the 'About' selection appears on the screen; and after
I exit the dialogue box, i'm getting the file selector). The
correct response should be NEITHER dialogue-box NOR file selector!
The code i'm using is the following:
int dummy, keypressed, msg_buffer[8], event;
OBJECT *menutree;
.
.
.
for(;;)?
menu_bar(menutree, 1); /* enable the menu bar */
event = evnt_multi( MN_SELECTED | MU_KEYBD,
0,0,0, /* clicks, button, state */
0, 0,0,0,0, /* inrec, x1, y1, w1, h1 */
0, 0,0,0,0, /* outrec,x2, y2, w2, h2 */
msg_buffer, /* message buffer */
dummy, dummy, /* lowtime, hightime */
&dummy, &dummy, /* mouse coordinates */
&dummy, &dummy, /* bptr, kptr */
&keypressed, /* i want this one */
&dummy /* times */
);
menu_bar(menutree, 0); /* disable the menu bar */
if ( event & MU_KEYBD )
switch (keypressed)?
........
/* case quit: rsrc_free(); appl_exit(); exit(0); */
?
else if (event & MN_SELECTED)? /* or just ... else */
switch (msg_buffer[4])?
........
/* case quit: rsrc_free(); appl_exit(); exit(0); */ */
?
? /* for */
The C compiler i'm using is MWC v3.0.9 but i don't think it matters
A friend of mine has Laser C v2.0 which has some AES examples in one
of the original disks! We tried to see what happens with 2 of these
examples, and we found out that the problem ALSO exists in both of them.
We also recompiled my program with Laser C, and nothing good happened!
This makes me think that it may be an undocumented AES bug(?).
On the other hand, all the programs i've seen using keyboard equi-
valents, do not have this problem!
The strange part is, that this is exactly what evnt_multi() is
supposed to do! When a menu is opened (but no entry has been selected)
the application sends NO message to the buffer..so evnt_multi() is
still active, waiting for a KEYBOARD or MENU event to occur! Thus if
a key is pressed, even if the menu is still opened, evnt_mutli()
writes the keyboard message to the buffer and terminates. ....And how
the heck am i supposed to change this behavior? How do the others do
it? You, guys, are my last hope! If i don't get any answer i'm gonna
remove the keyboard equivalents from the program (or i may leave it as
it is right now)...
Anyway, if someone out there knows the answer, PLEAAAAASEEEEE, let me
know........I may give him a free copy of my program (what a guy, he?)
And something else. What's your reaction on the file selector? Why am
I getting the file selector after the dialogue box? I cannot give any
logical explanation. I mean, i just talked about evnt_multi() and key-
equivalents..but why is it giving me the file selector? It should be
done after the dialogue box, right? (note that the file selector is
supposed to be activated with the entry 'Open', but still i cannot
explain it!)
thanks a lot!!!!
Harry Karayiannis
3rd Year Computer Science
Boston University
-------------------------------------- SORY FOR ANIE MISPELSS------------------
I'm just another Greek!!
------------------------------
Date: 11 Dec 89 10:59:45 GMT
From: mcsun!hp4nl!tnoibbc!remco@uunet.uu.net (Remco Bruyne)
Su--------------
Date: 1 Dec 89 19:01:24 GMT
From: thelake!steve@UMN-CS.CS.UMN.EDU (Steve Yelvington)
Subject: Trash, Disks, etc.
Message-ID: <1101891301242836@thelake.UUCP>
In article <9911@saturn.ucsc.edu>,
dstr012@ucscg.UCSC.EDU (10003012) writes ...
>Does anyone out there have or know where I can get a program to change
>the Trash and file cabinet icons on the desktop? The old desktop is getting
>pretty boring and I am due for a change. Thanks.
>
> Roman Baker
NeoDesk (from your local dealer, or $31.95 from E. Arthur Brown Co.,
612-762-8847) does this and more. Each file .ext can be associated with
its own icon. Program icons can be dragged out onto the Desktop, so you
can click and go without having to navigate through folders. It also
provides "hot keys," a printer queue, faster windows and even a digital
clock, all in 21K of RAM. It's what the Desktop should have been all along.
-- Steve Yelvington, up at the lake in Minnesota
... pwcs.StPaul.GOV!stag!thelake!steve (UUCP)
Hello,
Has anybody tried to compile Sozobon C under MS-DOS ? Compiling
with Microsoft C 5.0 seems to work on first sight, but when you
run the compiler the following error occurs:
in main.c (from HCC):
if(sizeof(NODE) & 3) ?
printf("sizeof NODE not mult of 4\n");
exit(1);
?
Any ideas? Please respond via email, because I don't read comp.sys.ibm.pc.
Thanks in advance, Remco Bruijne
--
------------------------------------------------------------------
Remco Bruijne USENET: remco@tnoibbc PHONE: +31 15 606437
------------------------------------------------------------------
------------------------------
Date: 10 Dec 89 22:08:47 GMT
From: cbmvax!atha!rwa@rutgers.edu (Ross Alexander)
Subject: Doesn't work
Message-ID: <1303@atha.AthabascaU.CA>
stephen@oahu.cs.ucla.edu (Steve Whitney) writes:
>In article <8912050807.AA13706@ucbvax.Berkeley.EDU>
V053QHYX@UBVMSC.CC.BUFFALO.EDU writes:
>>
>>Add to the list of programs that dont work with tos 1.4 :
>>DBMAN 5.02 and Timeworks destop publisher....
>I don't know what version of Timeworks DTP you're using, but mine works _fine_
>with TOS 1.4. I bought mine last Spring so perhaps they fixed it.
And my 2 year old version runs fine, as well (ROM 1.4 TOS, 2.5 Mbytes,
Revision D mainboard). Try turning off all your .acc's for a starter.
Ross
------------------------------
Date: Mon, 11 Dec 89 03:27 EST
From: EDGINGTC%Wabash.Bitnet@Forsythe.Stanford.EDU
Subject: Games for ST
I can't decide what game I should ask for for Christmas for my ST. Tell me
what your favorite games are and why so I can make the best choice.
------------------------------------------------------------------------------
| ______ | ATARI IS NO. 1 | Chris Edgington |
| / \ / \ | * * * | Wabash College '92 |
| ARN.MARIST>