[futurebasic] Re: [FB] Re : [FB] System 8 WDEFs - getting there

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 1999 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Wed, 27 Jan 1999 19:35:15 -0600

jonathan wrote:

> i doubt that they'd work as they'd suppose that the ID is 66
> or whatever and intercept that, not the ID 8 in the FB app.
>
> Your idea however is very nice and clever (although I'm not
> going to try and implement it tonite :-), but would have been
> a lot easier had FB not played around with the access to the
> WDEFs. Does anyone know why 'historically' it does this?

For a long time, the proc ID's for all the System-defined windows were always
less than 256.  Although there was never any "promise" from Apple that they
would forever remain that way, evidently FB assumed that such was the case,
and allocated only 1 byte for the proc ID information.

Luckily, there is no such limitation for FB buttons, which is why we we're
able to use the newer controls (like disclosure triangles) in the BUTTON
statement.

- Rick