Article View: comp.sys.atari.st
Article #26994Three questions to the gurus
From: Oliver [DKowalski
Date: Mon, 25 May 1987 14:13
Date: Mon, 25 May 1987 14:13
91 lines
3379 bytes
3379 bytes
Hello to the outside networld,
a friend of mine has a couple of questions, and I have suggested him to post
these to the net, in hope that the ATARI ST gurus will know the answer and
will post it. So, here they are:
NoWait Evnt_Multi
-----------------
Is there a possibility to do a nowait Evnt_Multi call ?
I am looking for a function having the same effect as evnt_multi but is not
waiting for an event. This means, if there is no event pending the function
return with a 'noEvent'-Event. This would be useful in an application which
is looking for a keystroke.If there is none the application does other things
(flashing cursor...).
I made some experiments using the timer. But two difficulties arose:
1. Some keystrokes got lost (especially with short timer intervals)
2. Also the menu handling is interupted. The effect is that menus
are falling down, the evnt_multi terminates and the menus are
still visible. So parts of the screen are not redrawn and
contains trash.
Is there anybody who can help?
Ftruncate
---------
Is there any possibility to truncate a file, create by the Fcreate command ?
This should mean, can I shrink the logical size of a GEMDOS-file ( without
copying it) ?
wind_set and WF_NEWDESK
-----------------------
Using the wind_set command and the WF_NEWDESK attribute, one can change the
default desktop by giving an object to be drawn instead of the standard
desktop. But how can I 'undo' this ?
This problem ocurred when I was writing a shell for a TeX environment. In this
shell there was a Pexec call to other GEM-programs (editors, viewers,...).
When calling WordPlus e.g. some bombs exploded after returning to the my
shell. WordPlus (and other programs) do change the default desktop to a local
object, which vanishes (or better, becomes undefined) when WordPlus
terminates. But the pointer to this object still remains and causes the
described difficulty. My solution was to do a wind_set call by my own
immediately after the Pexec and define an object (a grey box) which looks like
the original desktop.
This works !
But is there a better way ? What does the GEM-Desktop program do to avoid this
problem ?
Obscure Cursor
--------------
How can I make a 'Obscure Cursor' in GEM?
A Obscure Cursor is a cursor, invisible as long as the mouse isn't moved. When
moving the mouse the cursor becomes visible and remains visible until a
special call hides it. Normal program execution should not be influenced.
E.g. WordPlus has this feature implemented.
That's all for the moment. Thanks in advance for the bunch of answers. Just
to mention, the callers address is :
Udo Borkowski
Endenicher Str. 277
D-5300 Bonn 1
West Germany
and my name & address
Oliver Kowalski
usenet : {...,seismo}!mcvax!unido!gmdzi!kow
Technical Details
Message-ID:
<341@gmdzi.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!unido!gmdzi!kowShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!unido!gmdzi!kow From: kow@gmdzi.UUCP (Oliver [DKowalski) Newsgroups: comp.sys.atari.st Subject: Three questions to the gurus Message-ID: <341@gmdzi.UUCP> Date: Mon, 25-May-87 10:13:00 EDT Article-I.D.: gmdzi.341 Posted: Mon May 25 10:13:00 1987 Date-Received: Wed, 27-May-87 00:49:42 EDT Organization: GMD, Sankt Augustin, F.R.Germany Lines: 91