• Get access

How to change close bmp Button in Dialog.mqh

To add comments, please log in or register
Martin Moreno
164
Martin Moreno  

I need to use my own Close button in my panel. Then I tried to override CreateButtonClose(void) in Dialog.mqh file but I got this error: private member access error

How can I fixed it and use my own Close.bmp instead of the default bmp file ? 


#resource "\\Projects\\myPanel\\resources\\Close.bmp"

class CmyAppDialog : public CAppDialog 
{
   protected:
   
       virtual bool CreateButtonClose(void)
       {
         CDialog::CreateButtonClose();
         if(!m_button_close.BmpNames("::Projects\\myPanel\\resources\\Close.bmp"))
            return(false);
     
         return(true);
       }     
};
Martin Moreno
164
Martin Moreno  

Any idea?

To add comments, please log in or register