Download MetaTrader 5

how to create dropdown box / text field and get the value inside the box ?

To add comments, please log in or register
forexparvenu
905
forexparvenu  
honest_knave
Moderator
2413
honest_knave  
forexparvenu
905
forexparvenu  
honest_knave:

OBJ_EDIT

ObjectGetString

 

thanks...

coding now

forexparvenu
905
forexparvenu  
honest_knave:

OBJ_EDIT

ObjectGetString

 

success create the text box for key in the value,

but how to get the value inside it ?

im using CHARTEVENT_OBJECT_CLICK for the button

 

   if(id==CHARTEVENT_OBJECT_CLICK)

   {

   if(sparam=="LotSizeToUse") 

   {

   // what should i put in here ?

   // StringToDouble ?? or StrToDouble ??

 

 

 

 

honest_knave
Moderator
2413
honest_knave  

You should be able to retrieve it using

ObjectGetString(chart_ID,name_of_objedit,OBJPROP_TEXT)

 You can then typecast the text as a double, or use StringToDouble()

forexparvenu
905
forexparvenu  
honest_knave:

You should be able to retrieve it using

 You can then typecast the text as a double, or use StringToDouble()

 

thanks for the help

 

trying now 

 


honest_knave
Moderator
2413
honest_knave  
Glad to help
forexparvenu
905
forexparvenu  
honest_knave:

You should be able to retrieve it using

 You can then typecast the text as a double, or use StringToDouble()

 

hi... i need some help here.
To add comments, please log in or register