procedure TForm1.ComboBox1DrawItem(Control: TWinControl; Index: Integer;
Rect: TRect; State: TOwnerDrawState) ;
var
x: Integer;
txt: String;
begin
with ComboBox1 do
begin
Canvas.FillRect(Rect) ;
txt := Items[Index];
x := Rect.Right - Canvas.TextWidth(txt) - 4;
Canvas.TextOut(x, Rect.Top, txt) ;
end;
end;
'델파이 > Components' 카테고리의 다른 글
new component 에 ListBox 와 EditBox 두개 Control 넣기 (0) | 2012.02.06 |
---|---|
Component 에 TStringList 넣기 (0) | 2012.02.06 |
QuickReport (0) | 2007.03.21 |
Wave Viewer [Freeware][with Source][D4|D5|D6|D7] (0) | 2007.03.13 |
wave audio [Freeware][with Source][D3|D4|D5|D6|D7] (0) | 2007.03.13 |