SMExport/SMImport suite

Scalabium Delphi tips

Delphi tips and FAQs

[VCL] [Databases] [Reports, printing] [E-Mail, Internet, network] [Windows API] [Menu] [Tools API] [OLE, COM] [Files, drives] [Algorithms] [Conversions] [Multimedia] [Miscellaneous]


Scalabium Delphi tips

VCL

#0002 How can I draw the rotated text on canvas?
#0005 To change a font style (bold nodes) in standard TTreeview component
#0008 To disable a form movement
#0010 To add the horizontal scrollbar in listbox
#0012 To set a checkbox without OnClick event
#0013 To disable the on-fly tooltips in TTreeView
#0018 The form life cycle after creation
#0023 To get a line/column number that a memo/richtext cursor is on
#0025 To use a combobox instead inplace editor in TStringGrid
#0028 The offsets for TMemo
#0029 The quick filling a listbox with file names
#0034 To change alignment for TEdit
#0035 To make a form like system modal
#0036 To create a non-rectangular control
#0038 How to add a flat/hot track effect to components
#0057 To delete the row in TStringGrid component
#0065 To save/restore the component into BLOB-field
#0067 Access to some item of TRadioGroup component
#0085 To save/load the glyphs to/from external file
#0094 To assign a values to TStrings instead objects
#0102 To scroll a text in memo in run-time
#0146 Standard RichEdit component and URL highlighting
#0148 Autocomplete for edit/combobox
#0154 To exchange items in TListView
#0158 To change a font for TListView header
#0159 Flat header for TListView
#0160 Numeric editbox
#0163 To print the TTreeView and TListView
#0164 To display week numbers in TDateTimePicker

Databases

#0021 Database programming technology (Design Patterns)
#0043 To navigate by selected rows in DBGrid
#0062 To get the alias list, tables list etc
#0063 To copy (to dublicate) the dataset record
#0065 To save/restore the component into BLOB-field
#0079 To export a dataset into XML-file
#0081 To check if BDE exists
#0091 To play a wav-file from memory or BLOB-field
#0092 To switch a DBGrid in edit mode and set a cursor in some position
#0108 To generate the script for table creation
#0109 To generate the script for SELECT-statement
#0111 To create table in MS Access with DAO
#0141 To save file in BLOB and restore later
#0150 Use TClientDataset as memory dataset
#0168 To execute the query in MS Access

Reports, printing

#0017 Printer settings - page sizes and margins (part1)
#0019 To get a printer settings (part 2)
#0020 To set a printer settings
#0022 Printing on the TPrinter using default resident font (part 1)
#0026 The printer capabilities to print a graphics
#0032 To change the default printer in Windows
#0047 The list of jobs in the MS Windows print spooler
#0068 To use a resident font for printing (part 2)
#0083 To print/preview the MS Access's report
#0087 To send a command strings to printer
#0090 To print a bitmap on printer

E-mail, Internet, Network

#0037 How to get your local IP?
#0041 PC is connected to a network
#0049 To create the e-mail message in MS Outlook
#0080 To download the file from web
#0088 How do I find a MAC address?
#0095 To receive a modem list, which is installed in Win95/98
#0115 To create an email messaqe by MAPI
#0116 To download a file from internet using sockets
#0117 To select a recipient from addressbook
#0120 To retrieve a folder list from MS Outlook
#0121 To retrieve items (messages/tasks/etc) from any Outlook folder
#0123 To retrieve and save the attachments from MS Outlook message
#0126 HTTP/Url encoding
#0127 to print url/html file using IE browser
#0139 TWebBrowser and POST request
#0161 to read the proxy information

Windows API

#0001 How can I create a screenshot?
#0004 How can I receive a list of processes running on a system?
#0006 Delete a file into Recycle Bin
#0007 To detect a Windows version
#0009 To switch a keyboard layout
#0011 To add a some forms in Windows Task Manager
#0014 To get a system icons
#0016 Turn monitor power on/off
#0024 Turn the screensaver on/off
#0027 The current computer and user names
#0052 To get a sizes of some system controls
#0053 To set the clock (system datetime) in Windows
#0070 To read the environment string
#0082 To read the current code page of system
#0084 To load the icons from external dll/exe
#0086 To register the file extention and context menu
#0098 To retrieve a full path of module in DLL
#0105 To refresh a desktop
#0106 To read a path of system folder
#0112 To press a mouse button from code
#0131 To use extended Windows dialogs
#0133 To read native text of current locale
#0138 To change a color of standard TProgressbar
#0140 To define a custom icon for some folder
#0147 To show/hide clocks in tray
#0151 to display a Property dialog for file, folder or drive
#0156 alternative for TOpenDialog/TSaveDialog
#0157 select the folder dialog
#0166 to change the view style for OpenDialog/SaveDialog
#0167 to change the alignment for TButton
#0170 to add the chevron button for toolbar
#0171 to add chevron to TToolbar if some buttons are invisible (part 2)
#0172 crypt/decrypt the file in Crypt API
#0173 to calculate hash for string (CryptAPI)
#0174 to check if touch screen is available

Menu

#0030 To add item into system menu
#0033 To add bitmaps to menu items
#0060 To align a menu item to right
#0155 to show the system menu

Tools API

#0003 How can I check the Delphi/C++Builder version?
#0040 To read/write a property by name
#0054 To get a name of enum value
#0069 To receive a names of all registered components
#0070 To receive a names of all palettes, which was registered in IDE
#0073 To receive the list of published properties of component (part 1)
#0074 To receive the list of published properties of component (part 2)
#0103 To change a default font in IDE
#0104 To disable a new project creation
#0119 To register a component editor which will be activated by right mouse click in Delphi IDE

OLE, COM

#0049 To create the e-mail message in Outlook
#0051 To create a shell link/shortcut
#0083 print/preview the MS Access's report
#0086 To register the file extention and context menu
#0089 Description of Instancing and Threading Models in COM-servers
#0120 To retrieve a folder list from MS Outlook
#0128 To create an appointment in MS Outlook
#0142 To to read a sender address for MailItem (MS Outlook)
#0143 To check if OLE object is installed
#0144 Fast data transfer to MS Excel
#0145 Contact list in MS Outlook
#0149 language for installed MS Office
#0152 replace text/font in doc-file
#0153 open the password-protected xls-file and save without password
#0169 find the file name by ActiveX/OLE class name

Files, drives

#0031 To detect a drive type
#0046 To get a file datetime
#0050 How do I execute a program and have my code wait until it is finished?
#0051 To create a shell link/shortcut
#0055 To get the serial number of a disk
#0058 To accept the dropped files from Windows Explorer
#0066 The file in use or not
#0075 To map the network disk
#0114 To load a file list by some wildcard
#0118 To recieve a number of files in some folder by wildcard
#0122 To change a creation date/time for file on disk

Algorithms

#0039 To save/load a font information in INI/text-file
#0048 CRC32 calculation
#0056 To play with colors (dark/light)
#0093 Hash function for strings
#0113 Correct round of number
#0124 extended DayOfWeek function
#0125 second Wednesday of November
#0129 checksum by modulus 10
#0136 ELF hash algorithm
#0162 to extract the plain text from html string

Conversions

#0042 To convert the bitmap to Jpeg and vice versa
#0044 To convert a color string into HTML format
#0045 To convert color value into gray-scaled color value
#0132 To add leading zeros for numbers
#0137 To create a disabled bitmap
#0165 To convert the file size to string (a-la Explorer)

Multimedia

#0015 To open/close a CD-drive
#0078 To sound a beep for some action
#0091 To play a wav-file from memory or BLOB-field

Miscellaneous

#0056 To play with colors (dark/light)
#0059 To draw in area of the form caption
#0061 To retrieve the vertical refresh rate of the display
#0064 To draw a chart on some canvas
#0072 To change a line type for drawing
#0076 To change button caption in Open/SaveDialog
#0077 To get a mouse position
#0094 To assign a values to TStrings instead objects
#0096 To hide an application from TaskBar
#0097 To hide/show the Start button from Windows TaskBar
#0107 To add a custom control in standard dialog
#0110 To increase a performance of standard TTreeView/TListView
#0130 To use a procedure in dll from Delphi code
#0134 daylight saving time
#0135 To filter a mouse and keyboard

The all these tips was extracted from messages of our mailing list.
You can subscribe on SMComponents free here:
http://groups.yahoo.com/group/SMComponents/join


[VCL] [Databases] [Reports, printing] [E-Mail, Internet, network] [Windows API] [Menu] [Tools API] [OLE, COM] [Files, drives] [Algorithms] [Conversions] [Multimedia] [Miscellaneous]


Scalabium Delphi tips

Copyright© 1998-2024, Scalabium. All rights reserved.
webmaster@scalabium.com

March 4, 2023

Scalabium Software