Disliked{quote} You should be using CChartObjectButton instead of CButton. CButton is for use with CAppDialog. This is how I do it. #property strict #include <chartobjects/chartobjectstxtcontrols.mqh> #include <arrays/list.mqh> class Buttons; //+------------------------------------------------------------------+ class MyButton : public CChartObjectButton { protected: static int s_num; Buttons *m_mgr; public: MyButton(Buttons *mgr):m_mgr(mgr){} bool create(string title, int x,int y,int xsize, int ysize); bool onclick(string button_name); }; int MyButton::s_num...Ignored
i want to detect it in the OnTick() Function.