Chau Chee Yang Technical Blog

Friday, April 11, 2008

Draw a translucent effect image

›
We may use windows GDI function AlphaBlend to draw translucent graphic. The following example extract a portion of desktop image and draw t...
Wednesday, March 19, 2008

Compile DPK files using DCC32

›
Using Delphi command lines compiler DCC32 to compile programs allow us to set some switches to get various kind of output. The most common ...
2 comments:
Saturday, March 08, 2008

Retrieve Shell Folders

›
Windows has some special folders like My Documents, SendTo, Desktop or Favorites. The location of this folders are keep in the following reg...
Tuesday, March 04, 2008

Beware of XML Content contain CRLF always cause problem with Google API

›
We may consume the Google API to post entry of event kind. Those entry are mostly encoded in XML content. It is a common habit for windows...

Using Indy HTTPS client to consume Google API service

›
Indy VCL 10 distribution supports SSL via OpenSSL but it didn't bundle the DLL library. We have to download the Win32 OpenDDL from her...
3 comments:
Sunday, February 24, 2008

Resize Form even if it is borderless

›
We may make a form without borders to show some additional information using some popup windows. However, a borderless form will no longer ...
2 comments:

Move a form without dragging on the title bar

›
We usually use mouse to drag the windows form title bar to move the window on our desktop. There is a new way to move the form by just drag...
Thursday, February 21, 2008

TListBox review

›
TListBox is a simple visual component that always use for display a list of items but it has some nice features that we always neglected. U...
Saturday, February 09, 2008

Create home directory manually

›
When we use /usr/sbin/useradd to create a user, it's home directory may contain some default files or folders (it is hidden usually). H...
Thursday, January 31, 2008

Color MDI Form

›
If we want to change background color of a form: we usually do like this: Form1.Color := clYellow; However, if a Form's FormStyle i...
1 comment:
Thursday, January 24, 2008

How to avoid creation of ~BPL files in Delphi 2007

›
There is only one way to prevent creation of ~BPL in Delphi 2007 IDE: patch delphicoreide100.bpl in C:\Program Files\CodeGear\RAD Studio\5.0...
Thursday, January 17, 2008

Setup Visual Studio 2005 to build Firebird source

›
Due to I/O redirector problem in GBAK.EXE ( http://tech.groups.yahoo.com/group/firebird-support/message/90995 ), I download Firebird source...
Wednesday, January 16, 2008

Embed out of process windows into Delphi Control

›
We may easily embed a Delphi GUI control into another container control like TForm or TPanel: var F: TForm; B: TButton; begin F := TForm....
Saturday, December 22, 2007

Connect to Firebird 1.5 database on Windows Vista using Local Protocol

›
Using Local Protocol to connect to Firebird database no longer works in Windows Vista when we install firebird server using setup file's...
Saturday, December 08, 2007

Create a I/O redirection console application

›
Typical DOS application that may perform great function are GREP, MORE, SORT. These functions chain together via command redirection operat...

Scrolling TMemo and TRichEdit control at runtime

›
Here is the code to scroll TMemo control to bottom at runtime: var M: TWMVScroll; begin M.Msg := WM_VSCROLL; M.ScrollCode := SB_BOTTOM; ...
Friday, December 07, 2007

Capture the output of console process and display on your GUI application

›
I use GBAK.EXE to perform backup and restore operation of Firebird database in my GUI application design. The reason I use GBAK instead of...
Friday, November 02, 2007

Enumerate Optional Parameters of TClientDataSet instance

›
We may use GetOptionalParam and SetOptionalParam methods to access the optional parameters in TClientDataSet instance. However, if we do n...
Friday, October 26, 2007

Understand HANDLE allocated to Delphi Packages in Windows environment

›
We may seldom need to deal with Windows API when using Delphi VCL to develop a Win32 application. The most common information we may want t...
Thursday, October 25, 2007

Make non TWinControl descendant response to windows messages

›
Although using SendMessage and PostMessage isn't a good practice in OO design. However, I do need it in some situation. All the while ...
‹
›
Home
View web version

About Me

My photo
Chau Chee Yang
View my complete profile
Powered by Blogger.