摘要: 从打开电源到开始操作,计算机的启动是一个非常复杂的过程。 我一直搞不清楚,这个过程到底是怎么回事,只看见屏幕快速滚动各种提示......这几天,我查了一些资料,试图搞懂它。下面就是我整理的笔记。 零、boot的含义 先问一个问题,"启动"用英语怎么说? 回答是boot。可是,boot原来的意思是靴子,"启动"与靴子有什么关系呢? 原来,这里的boot是bootstrap(鞋带)的缩写,它来自一句谚语:"pull oneself up by one's bootstraps" 字面意思是"拽着鞋带把自己拉起来" 阅读全文
posted @ 2013-04-13 17:08 ftwsnow 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2013-04-13 17:01 ftwsnow 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 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);... 阅读全文
posted @ 2013-04-13 16:59 ftwsnow 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: Delphi 的 Toolbar在Toolbar内可以显示图片和文字,图片的放置方式需要images与一个imageList组件想关联。其中有几个概念:imageList 图片如何控制大小? 其实imageList中的图片是可以整体控制大小的,默认是height×weight = 16×16 改成想要的尺寸就可以了imageList 对于背景透明的图片默认是背景是黑色的! 这里要控制ImageList 的ColorDepth属性,不要使用与设备相同,采用 cd32Bit。更改了Toolbar 相关的 toolButton的Caption属性没有文字显示! 这里要打开Tool 阅读全文
posted @ 2013-04-13 11:08 ftwsnow 阅读(494) 评论(0) 推荐(0) 编辑