AUDIO
Audio Stuff
Playing wav files
CLASSES
Class Variable
Control Arrays
Multiple Inheritence
COMPONENTS
Moving Components at Runtime
Clipboard Combobox
no verticle scrollbar in a grid
Adding components to Grids (such
as combobox)
ReadOnly Columns in String Grid
Letting users Select All
MEMO's, Edits, RichTexts, listboxes, comboboxes
How to get a range of text from a RichEdit
ComboBox with diferent lines styles
Listbox with bold items (only a few)
Memos with a margin
Line number of cursor in TMemo
CROSS APPLICATION PROCESSES
Clicking another application's button
DATABASE
INVALID or CORRUPT INDEX
find duplicate field values in database
using SQL
Detect DataSet Change
PARADOX
index out of date
Paradox Password Changing/adding
BDE
BDE version
DATES AND TIMES
Four digit year
Time without seconds
DELPHI ERRORS/EXCEPTIONS
Delphi 3 and 4 lockup problem
Incorrect drawing problem
RPC not available
Exception Handling
ActiveForms Crashing
Runtime Error 200 - 'Divide by 0'
Internal limit error/Delphi3 with
BDE5
DELPHI IDE
getting run parameters during development
DLL
dynamically calling a function inside
a dll with delphi 1
Loading DLL
Strings in Dlls
DLL's with forms
DOS
Pascal Files for Dos=PasFilesForDos
EXTERNAL PROGRAMS
Executing an external program
Executing Find Files from Delphi
CreateProcess and Wait
FILES, PATHS, DRIVES, ...
opening Help files
Reassigning drive letters
file mask
Short file names
notification of disk change
File Info
Drive Name and info
DRIVE TYPES
notification when created and
closed
Finding Default Programs
Checking to see if disk is in drive
Finding the executable name (minus
the extension)
Getting the default browser's
path
DELPHI FILES
manipulating DFM files
FONTS
Default font for components
FORMS
Clearing the canvas
MDI form with a background image
disable the form close button
Transparent Forms
Main form initially hidden
GAMES
TicTacToe
ICONS, BITMAPS, IMAGES
Determining if a point is within a circle
Using the system image list
Getting an image from an image
list
Bitmaps in RES Files
Icon to Bitmap
Using Regions to make irregular shapes
INTERNET
HTML Memo
Internet components and apps
RAS
Using TCPIP manually
KEYS
Key Code Constants
Enter key act like Tab key
Keys
MENUS
GetMenuItemInfo
NETWORK
Determining if connected to network
OLE
OLE with Word
PASCAL
User information
Broadcasting messages withing an
application
Generating negative random numbers
Interface Querying
PRINTING
Quick Reports without Database
Printing BMPs in Delphi 1
Printing the contents of a browser
Printer Setup Dialg Error
Printing in text mode
Automatically printing the screen
when the PrtSc button is pressed
SCROLLBARS
Scrollbar info
Scrolling components manually
STRINGS
Parsing Strings
TEXT
Rotating text
Transparent textout
FOREIGN LANGUAGES
Arabic right to left text
pre Delphi 4
making foreign letters upper or
lower case
TREEVIEWS
Printing a TreeView
Using TreeViews
TWAIN
TWAIN
WINDOWS
Adding to the context menu(popup menu
for files)
Windows NT security
Only one instance of running application
Startup and Shutdown
Reboot
DESKTOP
Refresh Desktop
Desktop image screensaver
SYSTEM INFO
getting the version number from Windows
System Info About Box
ICON TRAY
Tray Icon Applications
TASKBAR
New Icon on taskbar per form
TaskBar Icons
Hide/Show the taskbar
Form Design
Displaying a form as being the same size even when
the Screen Resolution varies.
How can I restore a window to its last
state when I run it again?
What is the order of event handlers when
a form is created and shown?
Iconizing an application and keeping it that
way.
Hiding the caption bar
How do I set the WindowState to wsMinimized
when I minimize a form?
How do I move one image across a background
image?
How do I use a form several times?
How do I use a case statement to determine which
object calls the procedure?
How do I do screen updates all at once (without
a ripple effect).
How do I initialte a DDE link to the program
manager to create a new group?
I want to know how I can make a variable
that is a "pointer" to Canvas.Font.
How do I use one of the cursor files in the
c:\delphi\images\cursors?
How can I tell if the right mouse button was
pressed?
How do I trap for right mouse clicks on my
VBX and have a popup menu display?
How do I create a floating palette window?
How do I close the help file when I close the
application?
How do I display a JPEG or PCX file?
How do I put a repeating bitmap on the background
of an MDI main form?
Where is the best place to open a splash screen
on program start up?
GetMinMax
How do I do something on the form's OnActivate
method?
How do I paint the background of my form with
a bitmap?
How can I have an animated icon (when the form
is minimized)?
How do I make it so that only the form
I select comes to the top? (i.e. without the main form)
How can I trap for my own hotkeys?
How do I paint with a cross-hatched brush?
How do I put the current time on the title
bar of my form?
How do I place the mouse anywhere on the
form that I want?
How do I size a form to fit a bitmap?
How can I change the form as text? (DFM
-> TXT -> DFM)
How can I reference a form by its name (e.g.
SomeForm.DoSomething) with SomeForm as a variable?
What is new?
VCL and components
TBitmap
How do I load a bitmap from a resource
without losing the pallette?
How can I erase the picture on image1.canvas?
How do I size a form to fit a bitmap?
How do I fill a graphic field from a BMP file?
How do I animate a bitmap?
How do I print a bitmap to a specific size?
TFont
How can I find out what all of the available
fonts are?
How can I determine the length in pixels
of a string after a specific font has been applied to it?
How do I rotate text in display?
TReader
TBlobStream
TFontDialog
How can I force the user to select only a
mono-space font?
TReport
How do I connect to TReport?
TCalendar
How do I decide whether or not to hightlight
a day in a calendar?
THelpEvent
TSpeedButton
How do I paste a bitmap or glyph on a speedbutton
without losing the background color?
How can I write a function that generically
responds to all Speedbutton clicks?
Is there an easy way to assign speedbutton
properties via iteration at runtime?
TCanvas
How do I set and reset the canvas.font.style
property?
How do I do a TextOut() so that I don't get
the white space around the text?
How do I paint with a cross-hatched brush?
TImage
How can I erase the picture on image1.canvas?
How do I paint with a cross-hatched brush?
How do I size a form to fit a bitmap?
TStoredProc
How do I get the result from a TStoredProc?
TCompatibleStream
TList
How do I use a TList to hold TTable variables?
How can I use a TList to hold variables?
TStringGrid
How do I populate a TStringGrid with strings
from a file...and save the strings after user editing back to a file?
How do I highlight selected fields
on a TStringGrid?
How do I make characters in a string in
a TStringGrid different colors?
Here is a custom TStringGrid that will
allow for inserting a whole row at a time.
How do I right justify a column
of numeric data in a TStringGrid?
TDatabase
How do I retrieve the user name from a TDatabase
after the user has logged on?
TListBox
How can I get a horizontal scrollbar
on a list box?
How do you fill a listbox with
multiple lines?
How do I fill a listbox from a table?
How do I make a TListBox with displayable
tabs?
How do I have lines in a listbox as different
colors?
How do I fill a listbox from a memo
field in a table?
How do I do click and drag in a TListbox?
Here is a custom component that is an
owner-draw listbox with bitmaps.
TTabbed Notebook
How do I add items to a tabbed notebook
at runtime?
How do I iterate through tabbed notebook pages
to see each object?
How do I fake TTabbedNotebook with multiple
forms?
How do I draw on the pages of a TTabbedNotebook?
How can I conserve resources with
a TTabbedNotebook?
TDBGrid
How do I set focus on a specific field
on a TDBGrid?
How do I change the color of a grid cell
in a TDBGrid?
How do I show the contents of a memo field in
a TDBGrid?
How do I use a navigator control with
multiple tdbGrids?
How do I resize my TDrawGrid columns so that
the grid fits exactly on the form?
How do you tell which record and which
field of a TDBGrid is current?
How do I change the color of a grid cell
in a TDBGrid?
How do I surface the MouseDown Event?
How do I to one character type-ahead in a TDBGrid?
How do I calculate the width of a TDBGrid
so that it will display all the fields?
How do I put components into a TDBGrid?
(i.e. checkbox, combobox, etc.)
How can I tell which row and column is
currently selected?
How do I setup the column list in
code for a dynamically created TTable?
How do I move columns with code?
TMediaPlayer
How do I size an AVI display to fit a panel?
How can I tell the default display size of an AVI
file?
TTable
How do I use a TList to hold TTable variables?
How do I setup the column list in
code for a dynamically created TTable?
TDBNavigator
How do I determine if a particular
button on a TDBNavigator control is enabled?
Navigator control use
TMemo
How can the tab stops be set in a TMemo control?
How can I tell the length in bytes of a memo field?
How can I get to the bottom of a memo field with
code?
How do I fill a memo field from a table?
How do I know which line number I am currently
on in a TMemo?
How do I fill a TMemo from a PChar?
How can I turn a memo's contents into a PChar?
How can I tell how many lines are showing
in a memo?
How can I trap for <CTRL-RETURN> in a TMemo?
TWriter
TEdit
How can I make the active TEdit one color, and
every other TEdit a default color?
How do I handle TEdit text with windows messages
only?
Here is a custom TEdit that will tab to the
next control when the user hits the <ENTER>.
How do I format the text of a TEdit so that a
1 becomes 001, and 10 becomes 010, etc?
How do I do a ShowMessage on the OnExit() of
a TEdit and still get a cursor on the next component?
How do I justify the text in a TEdit?
TMenu
How do I assign a method to a dynamically
created menu item?
What is the easiest way to change the
control menu of a form based application ?
How do I manipulate (enable/disable) the
'close' item on the default system menu?
32bit components
TCustomComboBox
TField
How do I setup the column list in
code for a dynamically created TTable?
TOutline
How do I do outline drag and drop?
How do I move an entire node (with siblings)
in an outline?
Here is how to fill an outline component from
a table.
How do I move an outline item to a different
level?
How can I use a different bitmap with each
node of a TOutline?
AddChildObject
GetDataItem
ChartFX
Dynamic components
How can VCL components be created on
the fly at run-time?
How do I move one image across a background
image?
How do I use one of the cursor files in the
c:\delphi\images\cursors?
How to dynamically add an object to a form.
How do I make a new component that
has a string editor?
How do I assign a method to the event of
a dynamically created object?
How do I populate a popup menu on the fly?
How do I save an object to a disk file?
How do I drag and move components in runtime?
general component information
What limits are known of the standard Delphi
controls?
How do I do screen updates all at once (without
a ripple effect).
I want to know how I can make a variable
that is a "pointer" to Canvas.Font.
How can I tell the size of a given object at
runtime?
How can my component tell if I'm in
design mode or running?
Is it possible to access components by
their name property (i.e. 'SpeedButton' + IntToStr(i) )?
How do I rotate text in display?
How do I get RTTI (run time type information) from
components?
Is there a way to associate
a string with each component?
How do I share Get/Set methods between
fields?
custom components
How do I make Borland style buttons (checkbox
and radio button)?
Slider
How do I use my own bitmap on the toolbar?
TPanelClock component (comes with Caps/Num/scroll
lock indication)
Component to allow for paradox style
QBE
Here is a custom TEdit that will tab to the
next control when the user hits the <ENTER>.
Here is a custom TStringGrid that will
allow for inserting a whole row at a time.
How do I emulate TCollection in Delphi?
How do I decide whether or not to hightlight
a day in a calendar?
How do I justify the text in a TEdit?
This component is a TListbox that has displayable
tabs.
How do I make a component that has other components
on it? (i.e. TPanel with TButton and TListbox)
Here is a custom component that provides an interface
to WinSock.
Here is a custom thread component.
Here is a custom TScrollbox that adds OnScrollHorz
& OnScrollVert events.
Here is a custom component that is an
owner-draw listbox with bitmaps.
using components
How do I make it so that when the user hits <enter>,
it goes to the next object as though he had hit the tab key?
How can a right clicked component be determined
while in an event handler of a popup menuitem?
How do I trap for right mouse clicks on my
VBX and have a popup menu display?
How do I use a case statement to determine which
object calls the procedure?
How do you control a scroll bar manually?
What is the easiest way to change the
control menu of a form based application ?
How do I hide the caption bar?
Gray Paper - Delphi Property Editors for
Beginners
How do I make a component that uses
the built in editor for a TStrings property?
Errors and Error Messages
GPF and runtime errors
BDE error codes and descriptions
Database
general
Doing Date Math On Calculated fields
IDAPI specifications
How do I fill a listbox from a table?
How do I fill a listbox from a memo
field in a table?
How do I link tables with queries?
How do I set focus on a specific field
on a TDBGrid?
Here is how to fill an outline component from
a table.
How do I set a format for a data field?
FindNearest only show the record found when
I enter a complete value.
I use the help file example for the ADD
method and I get an error message "comma expected".
How do I access ACCESS tables?
How do I do a locate on a non-indexed field?
How can I tell the name of a field if I just know
its number?
How can I determine the current record number
for a dataset?
How can I determine when the current record
in a dataset has changed?
How do I make tables in a loop?
How do I make a virtual table (in memory)?
How can I create an empty table that has the
structure of another table?
How do I setup the column list in
code for a dynamically created TTable?
How do I flush the data buffer to the table?
(i.e. hard write to disk)
How do I search a database incrementally?
How can I list the field structures of a
table?
How do I retrieve the user name from a TDatabase
after the user has logged on?
How can I tell which fields are indexed?
How do I join files when they have a differing
alias?
How do I use a locate() with multiple
fields?
paradox
How do I make it so that the form comes
up without prompting the user for the password?
How do I transfer the text in a
TMemo component on a form to a TMemofield in a Paradox table?
How do I make an ASCII text table from a paradox
table?
How do I pack a Paradox table?
How to I create a Paradox table with an Auto
Increment type field programatically?
What is the Delphi equivalent for the Paradox for Windows
function 'cMax'?
How can I get my indexes to be listed in the drop
down of the tTable IndexName property?
How do I fill a graphic field from a BMP file?
How do I lock a directory?
How do I use a PW byte field to hold arrays
of records?
dBASE
How do I pack a dBASE table?
How do I create complex indices on dBASE
tables in Delphi?
I can't open my DBF file because the MDX is missing.
How do I do a search on an expression
index?
How can I view dBASE records marked for
deletion?
IDAPI calls
DbiGetNetUserName
DbiGetErrorString
DbiSaveChanges
DBiRegisterCallBack
ODBC
How do I update Access records?
How do I connect to Access via ODBC?
SQL
General SQL:
How can I reference a field name with
a space in a query?
How do I pass a variable to a query?
How do I display a record that has the table's
MAX value?
How can I use the aggregate functions (avg, sum,
count, max, min) with a table?
I get an "Error creating cursor handle"
message.
How do I get the result from a TStoredProc?
What is the syntax for the SQL SubString() method?
Sybase:
Updated tables
Error Message: 'connection is in use
by another statement'.
Interbase:
How can I make it run faster?
API
CreateFont
FindWindow
General Programming
General programming
Optimizing code
How do I link to existing OBJ files?
Which memory model does Delphi use?
How do I use a resource (.RES) file?
DLL
How do I manipulate a TStringList
in a DLL?
How Do I pass a struct (**by reference**)
from VB to a DLL created in Delphi?
DLL template
How do I call a "C" DLL from Delphi?
How can I detect the presense of a DLL that
may or may not be loaded?
How do I call a dll function at runtime if the
DLL is not known about at compile time?
How do I get a single returned from a C++
DLL (MS)?
How do I use a 32 bit DLL with 16 bit
Delphi?
Here is a "C" DLL template.
File Handling
How do I read and write binary files?
Here are some general file management routines.
How do I copy a file?
How do I iterate through all the directories
and sub-directories of my hard disk.
How can I search through subdirectories?
Here is a unit to read Lotus 123 files.
How do I close a file that was opened in
a DLL (Delphi made) and called from VB?
How can I readln() from a file when the lines
are longer than 255 bytes?
How do I get a file's date and time stamp?
How do I write to a printer port?
Windows system housekeeping
How can I tell if share is loaded from Delphi?
How can I get the windows or dos versions?
Simulating multi-tasking (for long CPU intensive
methods).
How can I tell which CPU is being used?
How do I detect for a co-processor?
Sendkeys
How do I terminate all running tasks?
How can I detect if there is already another copy
of my app running and exit if so?
How can I detect the presense of a DLL that
may or may not be loaded?
How can I check to see if there is a disk in
the "A" drive?
How do I detect whether a drive exists or not?
How do I disable and enable the keyboard?
How do I override the default message
handler for my Application?
How do I set the WindowState to wsMinimized
when I minimize a form?
How can I get messages before my application's
window procedure is called?
How do I handle TEdit text with windows messages
only?
How can I create a windows meta-file from ellipse(),
textOut(), etc. commands?
How can I make one window the child
of another without using MDI?
How can I get information about window's tasks?
How do I disable the screensaver?
How do I broadcast changes to WIN.INI?
How do I manage disk volume labels in Delphi?
How do I make a screen saver in Delphi?
How do I place a 16 bit icon on the Win95's
tray?
memory management and arrays
How do I access hardware memory directly?
How can I parse a PChar?
Is there any way to dynamically redimension
an array?
ARRAY: searching and sorting routines.
Here is the UNIT with the code.
Here is the manual that describes the code.
Here is a program to compare the sorting algorithms.
Here is a program to test the sorts.
How do I emulate a VB control array?
How can I use huge arrays? (i.e. > 64K)
How do I do pointer arithmetic in Delphi?
How do I reduce the amount of memory taken
from the data segment? (or How do I allocate memory dynamically?)
When would I use an array[0..0]?
How do I pass arrays into a procedure?
How do I use arrays in a Delphi DLL with
VB?
How do I use "array of const"?
How do I use a move?
math
Why can't we have unsigned longInts?
Getting the High/Low order byte from a word.
I am migrating from VB. Where is the exponent function?
Here is a unit for huge numbers (64 and 128
bits).
Here are some extra math functions.
Here is a function to duplicate the payment() method
in dBASE.
Here are some functions to use with the COMP type.
How do I avoid banker's rounding?
How do I pad a numeric string with zeros?
misc.
General Q&A on constructors.
Why can't my program find any of the resources
that I put in a .RES file if that .RES file is the same name as my form's
unit name?
What is the Object Pascal equivalent of C's "union"
reserved word?
Does anyone know about a syntax problem
with the ordering of the USES statement?
What are the caveats with callbacks and variable
scope resolution?
Why aren't Delphi EXE files as small as BP files?
What is a Callback function, and how do I create
one?
How do I put an ampersand in a caption without
it being an underline?
How do I write programs using function
pointers?
How do I store dates beyond the year 2000?
How do I write a simple windows program in BP?
How do I make sound the way that it worked in BP7?
How do I write a method that responds to
a windows message?
How do I dial a phone?
How would I blank the screen in Delphi?
How do I execute a program and have my code
wait until it is finished? (WinExecAndWait)
How do I change an icon to bitmap?
How do I read and write to a com-port?
How do I do bit-wise manipulation?
How do I get a DOS environment variable string?
Is there a way to get the integer value of
a month given only the long form of a month name?
How do I get the julian date?
Some general date functions
Here is a double linked list as an object.
How do I use "array of const"?
How do I use FmtStr()?
How do I eject paper from the printer?
How do I disable the screensaver?
How do I detect the pentium bug?
How can I verify if a string is a valid date?
How efficient is inc(i)?
What are the values for the virtual keys?
How do I paint with a cross-hatched brush?
How do I adjust the speaker volume
in code?
How do I share Get/Set methods between
fields?
How can I detect a CD drive?
Printing
How do I print a form?
How do I print a bitmap to a specific size?
How do I print to different printer resolutions?
How do I print from WinWord with DDE?
Demo for formatting the output. (columns,
justification, headers, footers, grayscale, page numbering)
How do I set printer options in code?
How can I tell if the printer is ON or not?
String Manipulation
IntToHexStr
HexStrToInt
IntToBinaryStr
isDigit
isUpper
isLower
toUpper
toLower
upper
lower
proper
rTrim()
lTrim()
AllTrim()
How do I format Numbers (adding commas
to a longint)?
Is there a way to use a Pascal string as a
null terminated string?
How do I manipulate a TStringList
in a DLL?
How can I parse a PChar?
How do I do a BreakApart()?
How do I do a search and replace in a string?
How can I get the command line parameters?
How can I determine the length in pixels
of a string after a specific font has been applied to it?
How do I determine if two strings sound alike?
How do I store dates beyond the year 2000?
How do I find one string inside another with
wildcards?
How do I pad a numeric string with zeros?
What are the values for the virtual keys?
"C" help
Type conversions
Static variables in Pascal
What is the Object Pascal equivalent of C's "union"
reserved word?
TARGET="main" How do I do pointer arithmetic in Delphi?
How do I translate this 'C' delaration to ObjectPascal?
How can I emulate the "C" function: StrTok()?
Porting apps from TP
Keeping streams and collections
How do I get everything on the command
line?
How can I get the command line parameters?
Using Crystal Reports, how do I let the
user select a printer at run-time?
OLE (32 bits)
Ole automation spec
How can I tell if my app was started as an OLE
server or not?
Simple OLE client/server demo.
Report Smith
How do I pass variables to Report Smith?
How can I get rid of the ReportSmith about box
splash screen when I run a report?
How do I connect to TReport?
32 Bits
Debugging
Debug Kernel error
Why doesn't the debugger highlight the correct
line when an exception occurs?
32 Bit API
Win32 SDK header files (SHELLOBJ)
Win32 SDK C examples (SHELLUTL)
WaveOutGetVolume
WaveOutSetVolume
Threads
Here is an example of threads.
Here is another thread example.
Here is a custom thread component.
How do I use TRegIniFile?
Porting to Delphi 2
How do I place an icon on the system tray
area of the taskbar?
How can I tell which type my variant currently
is?
How can I tell if my app was started as an OLE
server or not?
How do I get the network user name without
using the BDE?
How do I write a generic 32 bit Pascal for
windows program?
How do I change the font properties of a rich
edit in code?
Here is a 32 bit version of ASSERT.
Microsoft stuff
VB stuff
How Do I pass a struct (**by reference**)
from VB to a DLL created in Delphi?
How do I close a file that was opened in
a DLL (Delphi made) and called from VB?
How do I emulate a VB control array?
How do I use arrays in a Delphi DLL with
VB?
How do I create a form with the
equivelent of the visual basic 'FIXED DOUBLE' border with NO caption bar?
Access stuff
How do I update Access records?
How do I connect to Access via ODBC?
Extra Crap in the rtf
replace substr with another string
strstr
hextodecimal
overrideevent
dynamic vcl create
horizontal scrollbar in listbox
how to use access
text right of glyph on speedbutton
VBDLLARRAY
< TARGET="main"/a>
< TARGET="main"/a>
TWincontrol.Broadcast Problem
|