Article View: comp.sys.mac.programmer.misc
Article #5Anyone use Mac Oberon Lite? Does it work?
From: Dylan The Hippy Wabbit
Date: Tue, 15 Aug 1995 13:02
Date: Tue, 15 Aug 1995 13:02
44 lines
1661 bytes
1661 bytes
Hi,
I'm attempting to learn to program Macs using Mac Oberon Lite. I';m
having a problem getting it to deal with Update Events using the following
code:-
MODULE ORDER;
IMPORT
SYSTEM, TB:= MacToolbox, MT:=MacMoreToolbox, ME:=MacMemory,
TE:=MacText, IM:=MacImaging, MF:=MacFiles, MP:=MacProcesses,
MO:=MacOSUtils;
[SNIP]
REPEAT
gotEvent:=TB.WaitNextEvent(TB.everyEvent, event, 0, NIL);
CASE event.what OF
|TB.updateEvt:
thiswindow:=SYSTEM.VAL(TB.WindowPtr, event.message);
TB.BeginUpdate(thiswindow);
(*PUT IT IN LATER*)
TB.EndUpdate(thiswindow)
| TB.mouseDown: (*The Mouse Was Clicked *)
etc.....
The mousedown event is handled perfectly, but the updateEvt isn't
recognised at all. Putting a sysbeep in the updateEvt code indicates that
it simply isn't executed.
So, am I going wrong or is there a problem in the compiler? I've had
problems before with importing constants.
TIA
Dave Spacey
--
Don't underestimate the abacus......it requires no power, can be made with any materials you have to hand, and never goes bing in the middle of an important piece of work. (Many thanks to Douglas Adams.)
Technical Details
Message-ID:
<d_spacey-1508951302020001@conrad.clh.icnet.uk>Path:
arc1-ca.pugleaf.net!conrad.clh.icnet.uk!userShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!conrad.clh.icnet.uk!user From: d_spacey@icrf.icnet.uk (Dylan The Hippy Wabbit) Newsgroups: comp.sys.mac.programmer.misc,comp.sys.mac.programmer.help,comp.lang.oberon Subject: Anyone use Mac Oberon Lite? Does it work? Date: Tue, 15 Aug 1995 13:02:02 +0000 Organization: Imperial Cancer Research Fund Message-ID: <d_spacey-1508951302020001@conrad.clh.icnet.uk> NNTP-Posting-Host: conrad.clh.icnet.uk X-Newsreader: Yet Another NewsWatcher 2.0b27.2