GFA 16 Code Snippets

Cut and Paste

These are cut and paste code examples. 
1.Just paste into the GFA 16 Editor and Run
The Back Button Will Return you to the Menu Area
AB C D E F G H I J K L M N O  P Q R S T U V W X Y Z 

GFA Basic 16 Cut And Paste Code Snippets
( A) Cut And Paste Code Snippets
Array Fill Array fill With A Value
Available Drives Available Drives On System
Arrow Keys Monitoring The Arrow Keys
( B) Cut And Paste Code Snippets
Bezier Curve Drawing A Bezier Curve
Bitmap Inflo All Bitmap Information
Bitmap Load Bitmap Loading And Displaying
Bitmap Load With User.dll Bitmap Loading And Displaying Using USER.DLL
Bitmap Rotate This Will Load and Rotate a Bitmap of Certain Sizes
Bload Bloading A Data File
Bmove Bmove a Block of Data
Browse Bowsing For a Folder
( C) Cut And Paste Code Snippets
Calling *.Hlp Calling A Programs Wnhelp .HLP File
CallBack Using A CallBack Routine
Call NotePad Calling NotePad Exe
CD Drive Finding The Lettter Of Your CD Drive
Change To Caps Capitalizing The The First Letter Of Each Word In A Strings
Change Cursor Changing A Programs Cursor To A Different Shape (GFA 16)
Change Dialog Changing a Dialogs Color
Chart Menu Charting A Menu
CHAR{} Using CHAR{}
Child Window Creating A Child Window -Hi Mommy
Choose Font Chooseing a New Font For Your Program
ClipBoard API Using The ClipBoard API
ClipBoard API2 Another Example Of Using The ClipBoard API
ClipBoard Copying To The ClipBoard
Copy Files Fast Copy BIG Files :Very Fast
Create BItmap Create A Compatible Bitmap (GFA)
Create Polygon Create A Polygon Region (GFA)
Create Pop Menu Create A PopUp Menu (GFA)
( D) Cut And Paste Code Snippets
Delete Element Deleting A Elemenet From A Array (GFA 16)
Dialog CallBack Usin A CallBack For A Dialog (GFA 16)
Dialog Font Changing Fonts In A Dialog Box (GFA 16)
Drive Type Displaying The Type Of Drives On A System
DRAWTEXT Using DRAWTEXT In (GFA 16)
Drive Ready Checking If A Drive Is Ready
Dupe Disk Duplicating A Floppy From GFA
( E) Cut And Paste Code Snippets
EditBox Fonts Changing Edit Box Fonts (GFA 16)
Edit Array Editing A String Array (GFA 16)
Enum Fonts Enumerate System Fonts (GFA 16)
Evaluate Key Evaluate Key (F1-F12) (GFA 16)
( F) Cut And Paste Code Snippets
FilesLast4 Inserting The Last Four FIles Accessed Into Your Menu
Fonts Using GetStockObject For System Fonts (GFA 16)
Fonts- Diagonal Displaying Diagonal Fonts (GFA 16)
Fonts- Mixed Displaying Diagonal Fonts (GFA 16)
Fonts- Shadowed Displaying Shadowed and Outlined Fonts(GFA 16)
Fonts- Sizes Displaying Font Information
Fonts- Selecting Selecting And Displaying Any Font (GFA 16)
Fonts- Setting Selecting A New Windows Font
Format Format A Floppy Disk-Full or Quick
Function Keys Reading The Function Keys
( G) Cut And Paste Code Snippets
G Data No G Data At Present (GFA 16)
( H) Cut And Paste Code Snippets
Huge Using _Huge To Copy Large Files (GFA 16) John Findlay
( I) Cut And Paste Code Snippets
Icon Dialog Putting Icons In A Dialog Box (GFA 16) by Eberhard Funck
INSTR Using The Instr Command (GFA 16)
( J) Cut And Paste Code Snippets
J Data No J Data At Present (GFA 16)
( K) Cut And Paste Code Snippets
Key Codes Displaying The Key Codes (GFA 16)
( L) Cut And Paste Code Snippets
L Data No L Data At Present (GFA 16)
( M) Cut And Paste Code Snippets
Free Memory Shows amount Of Free Memory
Menu Charting Check Marking Menu Items (GFA 16)
( N) Cut And Paste Code Snippets
N Data No Data
( O) Cut And Paste Code Snippets
O Data No O Data
( P) Cut And Paste Code Snippets
Play Meta Playing A Meta File From Disk
Progress Bar Making A Progress Bar (Roland Walter)

( Q) Cut And Paste Code Snippets
Qsort Using The Built In Qsort Command

( R) Cut And Paste Code Snippets
Random Access Random Access File Handling
Rectangle Drawing A Rectangle
RoundRect Drawing A Round RecTangle
Rectangle Text Using Textout To Put Text In A Rectangle
( S) Cut And Paste Code Snippets
Searching A Fast Binary Search Routine
Searching Multiple Searching For All Occurrences Of A Record With A Binary Search
Select Switch Using SELECT or SWITCH
Set Cursor Setting The Cursors Position
Set Font Setting The Height Of A Font
Set Text Setting The Alignment Of Text
Sound The SOUND Command
Sub Menu Adding A SubMenu To A Menu
( T) Cut And Paste Code Snippets
TextOut Using TextOut Instead Of PRINT To Display Text
TextOut2 Using TextOut With A Different Font
TrackPopUpMenu Using TrackPopUpMenu For A PopUp Menu
TRIM$ Using TRIM To Remove Spaces From Both Ends Of a String
Type Array Using a TYPE Array For Strings
( U) Cut And Paste Code Snippets
U Data No U Data At Present
( V) Cut And Paste Code Snippets
Variable Types Gfa Basic 16 Variable Types
( W) Cut And Paste Code Snippets
WINDGET Using WINDGET to Find A Windows Attributes
WINDGET2 Using WINDGET to Find A Windows Attributes by Alan Shura
Window Help Displaying A Windows .HLP File
Window Fonts Windows Fonts
( X) Cut And Paste Code Snippets
X Data No X Data At Present
( Y) Cut And Paste Code Snippets
Y Data No Y Data At Present
( Z) Cut And Paste Code Snippets
Zeropad Padding A String WIrh Zeros
ZTRIM$ Trimming Chr$(0) From A String With ZTRIM$

Array Fill


Available Drives


Copy Large file


Bitmap Info


Load and Display a Bitmap


Load Bmp with User.dll


Rotate Bitmap


Using TYPE for String Array


Bload Data


Bmove Data


Browse For Folder


Button Push Button


A Simple Callback Proc


Calling a .HLP Help File


Call NOTEPAD.EXE


CD Rom Drive


Change Dialog Color


CHDIR


Change Windows Background


Change Windows Font


Char()


Chart Menu


Is Disk Drive Ready


Child Window


Choose A Font


Clipboard Copy and Paste


Clipboard API


Clipboard API2


Capitalize Each Word


Duplicate Floppy Disk


Create Compatible Bitmap


CreatePolygonRgn


Create PopUp Menu


Change Cursors


Dialog Box CallBack


DRAWTEXT Example


DLG Fonts For an EditBox


Edit Box Fonts


Edit String Array


Enumerate Fonts


Evaluate Key [F1]


The EXEC Command


Fonts Using GetStockObject


Font Selection


Format a Floppy Disk


Huge file Copy


Icons -System


Delete Array Element


Instr Command


Key Codes


Menu Charting


Play Meta File


Progress Bar


Put and Get


Random Access


Rectangle


Round Rectangle


Select / Switch


Binary Search Routine


Search Mutiple Occurrencess


Set Cursor Position


Set Font Height


SetTextAlign


Sound Command


Sorting With QSort


SubMenu Addittion


TextOut


TrackPopUpMenu


Variable Types


Window Font -Changeing


WinHelp - Calling


Diagonal Fonts - Calling


Mixed Fonts


Shadowed Fonts


Font Sizes


Setting A WIndows Font


Format Floppy


Reading The Function Keys


Show A Window Attributes


WINDGET Examle #2


Using TRIM$


Using ZTRIM$


Textout With A Different Font


Checking The Arrow Keys


Paddin With Zeros


Inserting Last 4 Files Into Your Menu


Free Memory


Get Drive Type


Text In A Rectangle


Drawing A Bezier Curve