On 23.07.2017 15:25, Michael Van Canneyt wrote: > I think the case statement is inefficient enough not to worry about an > additional call. There is IdentToInt function in Classes that makes this more efficient. IdentToColor from Graphics.pas uses it as well. Ondrej