Category:FutureBasic: Difference between revisions
Content added Content deleted
mNo edit summary |
|||
Line 24: | Line 24: | ||
The FB 6 IDE consists of a syntax-aware editor, and a translator (FBtoC) that converts FB code into C code. The translation is then compiled with the system compiler clang. |
The FB 6 IDE consists of a syntax-aware editor, and a translator (FBtoC) that converts FB code into C code. The translation is then compiled with the system compiler clang. |
||
Here |
Here is a sample program: |
||
<pre> |
<pre> |
||
// Build a basic window. |
|||
⚫ | |||
// Add a button to the window |
|||
⚫ | |||
// Add a dialog function to handle control events |
|||
local fn DoDialog( ev as long ) |
local fn DoDialog( ev as long ) |
||
if ( ev == _btnClick ) then |
if ( ev == _btnClick ) then beep |
||
end fn |
end fn |
||
⚫ | |||
// Iniitalize the dialog function |
|||
⚫ | |||
on dialog fn DoDialog |
on dialog fn DoDialog |
||
// Run the main event loop |
|||
HandleEvents |
HandleEvents |
||
</pre> |
</pre> |
||
Line 86: | Line 80: | ||
[http://www.brilorsoftware.com/fb FB Home] |
[http://www.brilorsoftware.com/fb FB Home] |
||
Also, there is an active and friendly support list where questions are welcomed and help readily available without a critical eye. |
Also, there is an active and friendly support list where questions are welcomed and help readily available without a critical eye. Registration is required to post to the list: |
||
[http://www.brilorsoftware.com/fb/pages/support.html FB Support List] |
[http://www.brilorsoftware.com/fb/pages/support.html FB Support List] |