Category:FutureBasic: Difference between revisions

m
no edit summary
mNo edit summary
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.
 
Here's is a sample program:
<pre>
 
// Build a basic window.
window 1, @"Hello, World!", (0,0,550,400)
// Add a button to the window
button 1,,, @"Click me"
 
// Add a dialog function to handle control events
local fn DoDialog( ev as long )
if ( ev == _btnClick ) then print "Hello, World!"beep
end fn
 
window 1, @"Hello, Worldworld!", (0,0,550,400)
// Iniitalize the dialog function
button 1,,, @"Click meBeep"
 
on dialog fn DoDialog
 
// Run the main event loop
HandleEvents
</pre>
Line 86 ⟶ 80:
[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. (Note: List archives are free for viewing, but registrationRegistration is required to post to the list):
 
[http://www.brilorsoftware.com/fb/pages/support.html FB Support List]
416

edits