12 2014 档案

摘要:1.通过API函数GetPixel(),获取某个点的颜色值;var PT : TPoint; C : TColor; DC : HDC; hwd : THandle; I : integer;begin GetCursorPos(PT); hwd := Windo... 阅读全文
posted @ 2014-12-16 22:12 delphiclub 阅读(870) 评论(0) 推荐(0) 编辑
摘要:1.类的声明,格式:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->TypeTMyClass=classend;TypeTBase=classproce... 阅读全文
posted @ 2014-12-16 20:39 delphiclub 阅读(160) 评论(0) 推荐(0) 编辑
摘要:1.在delphi 中,我们可以使用相同的函数名来调用不同的函数,我们称这个函数为重载,函数的参数类型和参数的个数可以不同,用到的关键字overload;格式如下:Code highlighting produced by Actipro CodeHighlighter (freeware)http... 阅读全文
posted @ 2014-12-16 20:38 delphiclub 阅读(1232) 评论(0) 推荐(0) 编辑
摘要:1.2进制转10进制自定义函数:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->function DecToInt(temp:string):integ... 阅读全文
posted @ 2014-12-16 20:36 delphiclub 阅读(380) 评论(0) 推荐(0) 编辑
摘要:1.10进制转16进制intTohex(10,4); //第一个参数为要转换的数据,第二个参数为要转换后的16进制位数;得到:000A;2. 16进制转10进制strToInt('$'+'64') ; //前面加上$符合,然后再加上要转换的16进制;一个16进制转10进制的函数:Code highl... 阅读全文
posted @ 2014-12-16 20:35 delphiclub 阅读(176) 评论(0) 推荐(0) 编辑
摘要:1.记录类型的定义type info = record name :string; age :integer; addr :string;end;2.记录类型应用Code highlighting produced by Actipro CodeHighlighter (freeware)http... 阅读全文
posted @ 2014-12-16 20:34 delphiclub 阅读(354) 评论(0) 推荐(0) 编辑
摘要:1.数组定义:var 数组标志符 : Array[0..100] of integer;注意,只有全局数组才能赋初值如:var num : array[0..5] of integer = (1,2,3,4,5,6);Code highlighting produced by Actipro Cod... 阅读全文
posted @ 2014-12-16 20:21 delphiclub 阅读(214) 评论(0) 推荐(0) 编辑
摘要:引用: 如果我们定义一个integer类型,他的范围-2147483648...2147483647之间,事实上一个程序的变量都是有一定范围的;如人的年龄0到130岁,身高0到3米;假如我们能在程序中规定变量的值域在一定范围内,那我们就可以很快检查出那些数据是不合法的,并能使程序在正确运行时节省很多... 阅读全文
posted @ 2014-12-16 20:20 delphiclub 阅读(252) 评论(0) 推荐(0) 编辑
摘要:1.枚举类型定义:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->TYPEdays=(Sunday,Monday,Tuesday,Wednesday,T... 阅读全文
posted @ 2014-12-16 20:19 delphiclub 阅读(9406) 评论(0) 推荐(0) 编辑
摘要:ord 取得参数唯一的对应值;pred 取得参数前续的值;succ 取得参数后续的值;low 返回参数可以取的最小值;high 返回参数可以取得最大值;用法如下:Code highlighting produced by Actipro CodeHighlighter (freeware)h... 阅读全文
posted @ 2014-12-16 20:18 delphiclub 阅读(169) 评论(0) 推荐(0) 编辑
摘要:在Windows大行其道的今天,windows界面程序受到广大用户的欢迎。对这些程序的操作不外乎两种,键盘输入控制和鼠标输入控制。有时,对于繁杂的,或重复性的操作,我们能否通过编制程序来代替手工输入,而用程序来模拟键盘及鼠标的输入呢?答案是肯定的。这主要是通过两个API函数来实现的。 下面以D... 阅读全文
posted @ 2014-12-16 18:26 delphiclub 阅读(3635) 评论(0) 推荐(0) 编辑