[futurebasic] Re: [FB] Radio Buttons

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

From: Brian Stevens <bstevens33@...>
Date: Fri, 18 Jan 2008 22:36:14 -0700
On Jan 18, 2008, at 9:47 PM, Bob Krueger wrote:

> My question is:  Where does a rookie find out what to include?
By studying the headers and looking at examples using them.

>   Is there a document that describes each of these includes, and  
> others?
No. Most folks that have created headers added a lot of comments in  
the headers themselves to make them self-documenting


>   Or do I just need to sit down and read each of the files in the  
> 'Headers' folder of FBtoC?

First thing to understand is headers are FB's ability to map Mac OS  
toolbox calls / Framework calls and make them available to the FB  
program. Most headers (e.g.  Tlbx Menus.incl ) often reflect a  
particular OS toolbox manager (in the case of Tlbx Menus.incl, the  
menu manager). Headers can also reflect a framework or other  
categories. For example, Tlbx ControlDefinitions.incl obviously  
describes control definitions, but it is the responsibility of the  
programmer to learn about them and understand what widgets are  
controls. During development of FBtoC we found many toolbox headers  
to be incorrect,  and in many cases leaning heavily on FB's weak  
typing. Many of these were fixed before they were added to the FBtoC  
headers folder. As you study the headers in FB, you will benefit from  
checking the definitions in FBtoC because they have been updated to  
survive the strong typing imposed by C.


Brian S.