Archive for the 'VCL components' Category

24 Jul

ComboBox with icons

Each ComboBox item with own icon? No problem. Using OwnerDraw style, we can do almost anything.

  • Digg
  • del.icio.us
  • Facebook
  • Twitter
  • Technorati
  • Google Bookmarks
  • Live
  • LinkedIn
  • MySpace
17 Feb

Own cool text cursor in Editbox

Standard text cursor is boring. What about replacing default vertical line with some cool shape?

04 Jan

Right justify ListBox items

The default ListBox items alignment is LeftJustify. There is no Object Inspector property to change this, so if we need to right justify items, we must use a simple trick.

29 Jul

Change font, size and style of hint

Hints are everywhere. Almost every GUI element in Windows can be “hinted”. When user hover mouse over element, small yellow bubble with help text pops up. Is it possible to change hint “window” behavior? Of course…

  • Digg
  • del.icio.us
  • Facebook
  • Twitter
  • Technorati
  • Google Bookmarks
  • Live
  • LinkedIn
  • MySpace
06 Jul

Change color of ListView items

To change background color of ListView items, you need to write your own OnCustomDrawItem event handler.

  • Digg
  • del.icio.us
  • Facebook
  • Twitter
  • Technorati
  • Google Bookmarks
  • Live
  • LinkedIn
  • MySpace
30 Jun

Listbox with colored lines

Colored lines in listbox are more user-friendly and easy to read. Here is how to do it…

  • Digg
  • del.icio.us
  • Facebook
  • Twitter
  • Technorati
  • Google Bookmarks
  • Live
  • LinkedIn
  • MySpace
16 Apr

Progressbar inside Button? No problem

It’s quite cool efect, but this is also effective way to save some space in your application GUI. Let’s place progressbar of some time-consuming function right into the button, which started this function.

  • Digg
  • del.icio.us
  • Facebook
  • Twitter
  • Technorati
  • Google Bookmarks
  • Live
  • LinkedIn
  • MySpace
10 Apr

Sort ListView by clicking on columns

First of all, set ListView to vsReport style and fill in some data. OnColumnClick and OnCompare events will do the rest.

  • Digg
  • del.icio.us
  • Facebook
  • Twitter
  • Technorati
  • Google Bookmarks
  • Live
  • LinkedIn
  • MySpace