WORDCALL.TXT
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:0k
源码类别:
Delphi控件源码
开发平台:
Delphi
- Declare Function GetColor Lib "FormDLL"(Col As Long) As Long
- Sub MAIN
- NewColor = GetColor(0)
- Print "The code of the color is " + Str$(NewColor)
- Insert "Red:" + Str$(NewColor Mod 256) + Chr$(13)
- Insert "Green:" + Str$(Int(NewColor / 256) Mod 256) + Chr$(13)
- Insert "Blue:" + Str$(Int(NewColor / (256 * 256))) + Chr$(13)
- End Sub