[futurebasic] Re: [FB] Moveabe windows

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

From: Bernie <fblist.bw@...>
Date: Mon, 14 Jan 2008 10:32:41 +0000
On 14 Jan 2008, at 06:53, Robert wrote:

> On 2008-01-13 21:38:32 -0800, bstevens33@... (Brian Stevens) said:
>
>> On Jan 13, 2008, at 10:10 PM, Robert wrote:
>>> I downloaded my free copy of futurebasic and I am having a bit of   
>>> trouble making windows movable or sizable.
>> window 1,"test"
>> do
>> handleevents
>> until gFBquit
>>> I am programming on a MacBook Pro running OSX 10.5.1 and I was   
>>> thinking maybe leopard does not play nice with futurebasic.
>> It runs fine under Rosetta.
>>> Any Ideas anyone?
>> Look at the Examples both in FBtoC and in FB (separate download)
>> Brian S.
>
> Thankk you very much Brian.
> Your sample works fine.
> Of course it is the handleevents function that I didn't even know  
> about that makes it possible.
>
> I am going to download lots of programs from the internet and even  
> if most of them wont run on leopard because the classic OS is  
> unsupported I can still look at the programs for ideas.
>


Welcome.

FB apps run just fine here on MacBook Pro / OS X 10.5.1.

Tips:
[1] Use RunApplicationEventLoop() instead of do : HandleEvents : until  
gFBQuit.
[2] Use carbon event handlers instead of    on xxxxxx fn XxXxxxxx     
(WNE) handlers.
[3] Build UI with Interface Builder instead of FB's appearance window/ 
appearance button statements.
[4] Give all windows the standard handler and compositing attributes.
[5] Use WindowIDs and ViewIDs instead of FB's window and button numbers.

Check out the FBtoC examples folder.

Bernie