Alexey wroteyou tell that "if LowerCase(s)='default'"
works faster than "if CompareText(s,'default')", but most of the fonts, dont
start with letter "d" or "de"=> so CompareText takes one char only,
LowerCase takes n chars=> LowerCase slower.
Yes, actually I realized the same thing.
What more, CompareText() is well optimized and converts ASCII chars quickly one by one.
I can change the code later to use CompareText().
Another thing is that GUI + font handling itself is slow compared to a string comparison which makes this issue rather philosophical...
Juha