Welcome to the FoFPC Run-Time Library Classes
Basic classes for RTL
uses
SysUtils, // Various System Utilities
Types,
TypInfo, // Run-Time Type Information
RTLConsts;
Overview
The Classes unit contains basic classes for the Free Component
Library (FCL). Including a TList for maintaining lists of pointers,
TStringList for lists of strings, TCollection to manage collections
of objects, and TStream classes to support streaming (to name a few).
Furthermore it introduces methods for object persistence, and classes
the understand an owner-owned relationship, with automatic memory
management.
Methods
ActivateClassGroup
Activates a class group
BeginGlobalLoading
Not yet implemented
BinToHex
Convert a binary buffer to a hexadecimal string
Bounds
Returns a TRect structure with the bounding rect of the given location and size
CheckSynchronize
Check whether there are any synchronize calls in the synchronize queue
ClassGroupOf
Returns the class group to which an instance or class belongs
CollectionsEqual
Returns True if two collections are equal
EndGlobalLoading
Not yet implemented
ExtractStrings
Split a string in different words
FindClass
Returns the class pointer of a class with given name
FindGlobalComponent
Callback used when a component must be found
FindIdentToInt
Return the string to integer converter for an integer type
FindIntToIdent
Return the integer to string converter for an integer type
FindNestedComponent
Finds the component with name path starting at the indicated root component
GetClass
Returns the class pointer of a class with given name
GetFixupInstanceNames
Returns the names of elements that need to be resolved for the root component, whose reference contains ReferenceRootName
GetFixupReferenceNames
Returns the names of elements that need to be resolved for the root component
GlobalFixupReferences
Called to resolve unresolved references after forms are loaded
GroupDescendentsWith
Add class to the group of another class
HexToBin
Convert a hexadecimal string to a binary buffer
IdentToInt
Looks up an integer value in a integer-to-identifier map list
InitComponentRes
Provided for Delphi compatibility only
InitInheritedComponent
Initializes a component descending from RootAncestor
IntToIdent
Looks up an identifier for an integer value in a identifier-to-integer map list
InvalidPoint
Check whether a point is invalid
LineStart
Finds the start of a line in Buffer before BufPos
NotifyGlobalLoading
Not yet implemented
ObjectBinaryToText
Converts an object stream from a binary to a text format
ObjectResourceToText
Converts an object stream from a (windows) resource to a text format
ObjectTextToBinary
Converts an object stream from a text to a binary format
ObjectTextToResource
Converts an object stream from a text to a (windows) resource format
Point
Returns a TPoint record with the given coordinates
PointsEqual
Check whether two TPoint variables are equal
ReadComponentRes
Read component properties from a resource in the current module
ReadComponentResEx
Read component properties from a resource in the specified module
ReadComponentResFile
Read component properties from a specified resource file
Rect
Returns a TRect record with the given coordinates
RedirectFixupReferences
Redirects references under the root object from OldRootName to NewRootName
RegisterClass
Registers a class with the streaming system
RegisterClassAlias
Registers a class alias with the streaming system
RegisterClasses
Registers multiple classes with the streaming system
RegisterComponents
Registers components for the component palette
RegisterFindGlobalComponentProc
Register a component searching handler
RegisterInitComponentHandler
Register a component initialization handler
RegisterIntegerConsts
Registers some integer-to-identifier mappings
RegisterNoIcon
Registers components that have no icon on the component palette
RegisterNonActiveX
Register non-activex component
RemoveFixupReferences
Removes references to rootname from the fixup list
RemoveFixups
Removes Instance from the fixup list
SmallPoint
Returns a TSmallPoint record with the given coordinates
StartClassGroup
Start new class group
UnRegisterClass
Unregisters a class from the streaming system
UnRegisterClasses
Unregisters multiple classes from the streaming system
UnregisterFindGlobalComponentProc
Remove a previously registered component searching handler
UnRegisterModuleClasses
Unregisters classes registered by module
WriteComponentResFile
Write component properties to a specified resource file
Constants
BITSHIFT = 5
Used to calculate the size of a bits array
dupAccepte = Types.dupAccept
Duplicate values can be added to the list
dupError = Types.dupError
If an attempt is made to add a duplicate value to the list, an EStringListError exception is raised
dupIgnore = Types.dupIgnore
Duplicate values will not be be added to the list, but no error will be triggered
FilerSignature = Array[1..4] pf Char = 'TPF0'
Constant that is found at the start of a binary stream containing a streamed component
fmCreate = $FFFF
TFileStream.Create creates a new file if needed
fmOpenRead = 0
TFileStream.Create opens a file with read-only access
fmOpenReadWrite = 2
TFileStream.Create opens a file with read-write access
fmOpenWrite = 1
TFileStream.Create opens a file with write-only access
MASK = 31
Bitmask with all bits on
MaxBitFlags = MaxBitRec * 32
Maximum number of bits in TBits collection
MaxBitRec = $FFFF div (SizeOf(Longint))
Maximum number of bit records in TBits
MaxListSize = MaxInt div 16
Maximum number of elemens in list
scAlt = $8000
Indicates ALT key in a keyboard shortcut
scCtrl = $4000
indicates CTRL key in a keyboard shortcut
scNone = 0
Indicates no special key is presed in a keyboard shortcut
scShift = $2000
Indicates Shift key in a keyboard shortcut
soFromBeginning = 0
Seek starts relative to the stream origin
soFromCurrent = 1
Seek starts relative to the current position in the stream
soFromEnd = 2
Seek starts relative to the stream end
toEOF = Char(0)
Value returned by TParser.Token when the end of the input stream was reached
toFloat = Char(4)
Value returned by TParser.Token when a floating point value was found in the input stream
toInteger = Char(3)
Value returned by TParser.Token when an integer was found in the input stream
toString = Char(2)
Value returned by TParser.Token when a string was found in the input stream
toSymbol = Char(1)
Value returned by TParser.Token when a symbol was found in the input stream
toWString = Char(5)
Value returned by TParser.Token when a widestring was found in the input stream
Types
Classes
Variables
AddDataModule
Handler called when a new TDataModule instance is created
ApplicationHandleException
Handler for exceptions when a TDataModule streaming error occurs
ApplicationShowException
Unused
GlobalNameSpace
Global namespace
MainThreadID
ID of main thread. Unused at this point
RegisterComponentsProc
Callback procedure used when handling component registration
RegisterNoIconProc
Callback procedure used when handling iconless component registration
RemoveDataModule
Handler called when a TDataModule instance is freed
WakeMainThread
Handler which is called if a thread wants to synchronize with the main application thread
grat-i-fi-ca-tion - noun
the state of being gratified; great satisfaction.
"Friends of Free Pascal is, in my view, one of the best things to happen to FPC since the compiler first appeared"
Gary Funk
BoardWatch Magazine