🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.programmer.misc
1 messages
1 total messages Started by Dylan The Hippy Wabbit Tue, 15 Aug 1995 13:02
Anyone use Mac Oberon Lite? Does it work?
#5
Author: Dylan The Hippy Wabbit
Date: Tue, 15 Aug 1995 13:02
44 lines
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.)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads