WORDCALL.TXT
Upload User: fh681027
Upload Date: 2022-07-23
Package Size: 1959k
Code Size: 0k
Category:

Delphi VCL

Development Platform:

Delphi

  1. Declare Function GetColor Lib "FormDLL"(Col As Long) As Long
  2. Sub MAIN
  3.   NewColor = GetColor(0)
  4.   Print "The code of the color is " + Str$(NewColor)
  5.   Insert "Red:" + Str$(NewColor Mod 256) + Chr$(13)
  6.   Insert "Green:" + Str$(Int(NewColor / 256) Mod 256) + Chr$(13)
  7.   Insert "Blue:" + Str$(Int(NewColor / (256 * 256))) + Chr$(13)
  8.   
  9. End Sub