[futurebasic] Re: [FB] FB3-4 dialog discrepancy?

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

From: Brian Stevens <bstevens33@...>
Date: Tue, 1 Jul 2008 07:16:34 -0700
On Jun 30, 2008, at 10:50 PM, andrew stewart wrote:

> I have written an application in compiled FutureBasic3 that runs  
> O.K. on
> Mac OS 9.2.2.
>
> I have recompiled it with FutureBasic4.4.3 and the application  
> compiles without error on Mac OS 10.4.11.
>
> However, when it runs in OS 10.4.11 (again without error), two dialog
> boxes constructed with ResEdit appear slightly corrupted in this  
> version. There appear to be some spurious buttons written over the  
> dialog boxes.
>
> However, the dialog boxes look correct when examined with ResEdit in  
> the resource fork of the compiled application.
>
> Any suggestions? Does FB4 treat dialogs differently to FB3?

(1) Controls ( like buttons, check boxes etc. ) need to be adjusted in  
OS X because the screen real estate required is different than OS 9.  
Possibly this is the problem. If you could post some links to screen  
prints showing the problem, it might be possible for the list to  
provide a better analysis.

(2) Dialog boxes created with ResEdit ( or other resource editors )  
are generally a bad idea in OS X. Building the dialog with direct  
toolbox calls ( or FB commands ) or loading from the NIB are the best  
options

(3) FB4 and FB3 make toolbox calls on the program's behalf when  
windows and controls are built with FB's commands ( like Window and  
Button ), so FB3 versus FB4 is not likely to be the issue in the  
analysis of "what's different" in these two scenarios.


Brian S.