Create Button function

 

Hello everyone,

Where I have "//---" is this a case of the button doesn't exist or, a possible function call if the button is pressed or, released? 

   if(!Create(0,"FIND",0,20,80,90,HEIGHT,CORNER_LEFT_UPPER,"FIND",FontStyle,Fontsize,BLUE,ALMOND,None,false,false,false,true,0))
   {
//---   
   }
 
GrumpyDuckMan:

Hello everyone,

Where I have "//---" is this a case of the button doesn't exist or, a possible function call if the button is pressed or, released? 


This should be a case where the button fails to instantiate - possibly due to the fact that it already exists... but that's a whole lot of args for a create function. Have you tried the standard library for creating buttons? ie. CChartObjectButton

 
nicholishen:

This should be a case where the button fails to instantiate - possibly due to the fact that it already exists... but that's a whole lot of args for a create function. Have you tried the standard library for creating buttons? ie. CChartObjectButton

hello,

CChartObjectButton is MQL5 function, where as I am using MQL4.

 
GrumpyDuckMan:

hello,

CChartObjectButton is MQL5 function, where as I am using MQL4.

No it's a standard library class for both platforms
Reason: