摘要:
type TEditLight= class (TEdit) private FEditSel: Boolean; procedure WMNCPAINT(var msg: TMessage); message WM_NCPaint; procedure SetEditSel(Value: Boolean); published property EditSel: Boolean read FEditSel write SetEditSel default False; end;procedure TEditLight.SetEditSel(Value: Boo... 阅读全文
摘要:
procedure TForm1.RoundControl(Control: TWinControl; arc1, arc2 :Integer);var R: TRect; Rgn: HRGN;begin with Control do begin R := Control.ClientRect; Rgn := CreateRoundRectRgn(R.Left, R.Top, R.Right, R.Bottom, arc1, arc2); //Perform(EM_GETRECT, 0, LParam(@R)); InflateRect(R, -5, -5);... 阅读全文
摘要:
Delphi 的 Toolbar在Toolbar内可以显示图片和文字,图片的放置方式需要images与一个imageList组件想关联。其中有几个概念:imageList 图片如何控制大小? 其实imageList中的图片是可以整体控制大小的,默认是height×weight = 16×16 改成想要的尺寸就可以了imageList 对于背景透明的图片默认是背景是黑色的! 这里要控制ImageList 的ColorDepth属性,不要使用与设备相同,采用 cd32Bit。更改了Toolbar 相关的 toolButton的Caption属性没有文字显示! 这里要打开Tool 阅读全文