[futurebasic] Re: [FB] Can someone explain this?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2000 : Group Archive : Group : All Groups

From: Joe Lewis Wilkins <PepeToo@...>
Date: Wed, 13 Dec 2000 14:29:45 -0800
Hi Alain,

You'll probably get some better answers later on, but I recall having
encountered a similar problem when working with Dialogs, and a
call to WINDOW FILL to force a screen update sometimes solved the
problem.  Wouldn't it be nice if it were as simple as that?

Joe Wilkins

Alain Pastor wrote:

> Hello All,
>
> When I was working on the Appearance Manager, I discovered that the
> sliders controls allowed live updates with zero effort from my part (my
> dialog handler is called during tracking).
> I don't know if I owe this feature to Apple or to Staz, but however it
> may be I have decided yesterday to build the most thrilling tool ever
> written on Earth (or perhaps since the beginning of time).
> Unfortunately, to achieve my goal I need to write directly on to the
> screen. I thought wrongly that just playing with the ports would have
> sufficed. Basically, I'm doing this:
>
> GetPort(oldPort)
> GetCWMgrPort(screenPort)
> SetPort(screenPort)
> // display stuff here
> SetPort(oldPort)
>
> Of course, nothing appears on screen, otherwise I wouldn't post
> anything.
> Perhaps I'm missing a step here, but what is it?
>
> The weird thing now. Quite by accident, I have discovered that my code
> was working provided I put a BEEP statement just before the drawing
> takes place, but It requires also that I set the sound level of the Mac
> to 0 (hopefully, I don't need to launch Stratavision and Photoshop nor I
> have to fry eggs in the kitchen and play la Vida Breve on my guitar at
> the same time).
> So, my question of the day is why is it like so and above all how can I
> work around this issue?
>
> TIA
>
> Alain
>
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>