Thanks for sharing, here is another version I made. Don't forget to use the GuiFunction.mqh in include directory if you wish to compile it.