fixed global delete command
renamed ApplyLexer into Set
added wxCAST_TO