Write this code in job.
static void colors(Args _args)
{
#DEFINE.COLORVALUE (64)
int r, g, b;
container chosenColor;
Binary customColors = new Binary(#COLORVALUE);
CCColor colorValue;
chosenColor = WinAPI::chooseColor(infolog.hWnd(), r, g, b, customColors, true);
if (chosenColor)
{
[r, g, b] = chosenColor;
colorValue = WinAPI::RGB2int(r, g, b);
print (colorValue);
pause;
}
}
#DEFINE.COLORVALUE (64)
int r, g, b;
container chosenColor;
Binary customColors = new Binary(#COLORVALUE);
CCColor colorValue;
chosenColor = WinAPI::chooseColor(infolog.hWnd(), r, g, b, customColors, true);
if (chosenColor)
{
[r, g, b] = chosenColor;
colorValue = WinAPI::RGB2int(r, g, b);
print (colorValue);
pause;
}
}
No comments:
Post a Comment