How to Remove the Form’s Caption

Posted December 15th @ 8:57 pm by m3Rlin

You may have wanted to create a form that doesn’t have a caption bar, just like the one’s you may see in setup programs. Delphi VCL doesn’t give you but you can also use the Windows API
Just add this code to you form’s OnCreate method:

SetWindowLong(Handle, GWL_STYLE, GetWindowLong(Handle, GWL_STYLE) and not WS_CAPTION);
Height := Height - [...]

Form and Component Editing Commands

Posted December 15th @ 3:52 pm by m3Rlin

Delphi and Kylix have a couple rather unknown form and component editing shortcuts. Here they are:

To select the form when its surface is covered by components, simply Shift-Click the form.
To fine move (by 1 pixel) a selected component just press Ctrl whilst pressing the cursor keys.
To fine resize a component just press Shift whilst pressing [...]

« Previous EntriesNext Entries »