Download MetaTrader 5

Launch object properties if user used the middle button to click on the object

To add comments, please log in or register
gdhami
145
gdhami  
void OnChartEvent(const int     id,
                  const long   &lparam,
                  const double &dparam,
                  const string &sparam)
{
   if (id == CHARTEVENT_OBJECT_CLICK)
   {
      Print("The mouse has been clicked on the object with name '" + sparam + "'"); 

      // Launch object properties if user used the middle button to click on the object
   }
}

 

Hi guys,

 

Title says it all, I have this code above and I'd like to programmatically launch object properties if user used the middle button to click on the object.

 

Is this possible? If so, can someone tells me how?

 

Thanks in advance! 

To add comments, please log in or register