textout()函数怎么控制行间距 我用textout()函数对字符串输出换行,请问怎么才能控制行间距,还是用textout()行间距没有办法改变 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼主看看帮助文档的example,procedure TForm1.FormCreate(Sender: TObject);var HeaderSection: THeaderSection; I: Integer;begin for I := 0 to 4 do begin HeaderSection := HeaderControl1.Sections.Add; HeaderSection.Text := 'Text Section ' + IntToStr(I); HeaderSection.MinWidth := length(HeaderSection.Text) * Font.Size; // Owner draw every other section if (I mod 2 = 0) then HeaderSection.Style := hsOwnerDraw else HeaderSection.Style := hsText; end;end;procedure TForm1.HeaderControl1DrawSection(HeaderControl: THeaderControl; Section: THeaderSection; const Rect: TRect; Pressed: Boolean);begin with HeaderControl.Canvas do begin // highlight pressed sections if Pressed then Font.Color := clRed else Font.Color := clBlue; TextOut(Rect.Left + Font.Size, Rect.Top + 2, 'Owner Drawn text'); end;end; 用文件流读取文件内16进制的数据怎么才能一次读取一个区间的数据?如6A~6E! SQL中的存储过程怎样在DELPHI调用啊,我用的BDE,高手们帮忙啊 关于ShellTreeView的两个问题,delphi自带的控件呀,不过好像很少人知道 终于变星星了。散分…… 关于socket,很简单. 怎么判断一个文件是否已被打开 怎么找不到ODBC? 帮帮忙,兄弟们,关于编历,送分 delphi form1根form2的变量修改form1控件的属性 各位,救命啊!老狼。。。。。。。。。。。。。(100分) 怎么还不升级啊 我这样标准的应该能拿多少?找工作,大家给个标准,谢谢!!100赠送
procedure TForm1.FormCreate(Sender: TObject);var
HeaderSection: THeaderSection;
I: Integer;
begin
for I := 0 to 4 do
begin
HeaderSection := HeaderControl1.Sections.Add;
HeaderSection.Text := 'Text Section ' + IntToStr(I);
HeaderSection.MinWidth := length(HeaderSection.Text) * Font.Size;
// Owner draw every other section
if (I mod 2 = 0) then
HeaderSection.Style := hsOwnerDraw
else
HeaderSection.Style := hsText; end;
end;procedure TForm1.HeaderControl1DrawSection(HeaderControl: THeaderControl;
Section: THeaderSection; const Rect: TRect; Pressed: Boolean);
begin
with HeaderControl.Canvas do
begin
// highlight pressed sections
if Pressed then
Font.Color := clRed
else
Font.Color := clBlue;
TextOut(Rect.Left + Font.Size, Rect.Top + 2, 'Owner Drawn text'); end;
end;