Topic: Convert Color Constant
Hello Dmitry,
I'm trying to change a label color based on a color constant (clred, clblue etc).
If I hard code the color constant in a script, it works fine (for example form1.edit1.font.color := clred;). however, if I pass the color constant through from a combobox, it produces a runtime error.
If I select the hex equivalent of a color constant from a combobox it works fine (but users won't know which hex value relates to which color constant).
So the question is how to change a label color to a color constant that is passed from a combobox? Any ideas?
Thanks,
Derek.