
Delphi_Picture
文章平均质量分 74
yjswjm119
这个作者很懒,什么都没留下…
展开
-
图章
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls;type TForm1 = class(TForm) PaintBox1: TPaintBox; Button1: TButt原创 2005-12-20 08:44:00 · 911 阅读 · 0 评论 -
一个对image的扩展控件
主要的功能:1.可以移动。2.鼠标移入移出和按下时能显示对应的图片。3.按下时可以有位置改变的效果。4.可以设置是否响应双击事件。5.可设置组按下抬起 GroupIndex修改日志:2005-10-04 解决鼠标点击过快时图片位置错误 添加鼠标双击时是否触发双击事件(如果不触发则触发2次单击事件)2005-11-28 增加组功能,使某组内只有一个图片为被按下的状态 Down=True2005原创 2006-02-15 08:25:00 · 978 阅读 · 0 评论 -
Stringgrid
if Sender is TStringGrid then begin with (Sender as TStringGrid) do begin if (ACol = 1) and (ARow > 1) then begin Canvas.Font.Color := clBlue; Canvas.TextOut(Rect.Left原创 2006-03-28 10:53:00 · 884 阅读 · 0 评论 -
如何在StringGrid控件中每格显示两行,且可以分别设置两行的颜色
procedure TForm1.Grid1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState);var Rect1:TRect; Rect2:TRect;begin Rect1.Left:=ACol*(Rect.Right-Rect.Left)+2; Rect1.Top:=A原创 2006-04-01 08:11:00 · 1606 阅读 · 0 评论