Download MetaTrader 5

a question about the state of button

To add comments, please log in or register
FuliangQ
52
FuliangQ  

hello , all guys ,

  when a button was pressed it won't   return to the un-pressed state until  user click it again .

 i want to know how to release an button from pressed state by program , automatically ?

 

or the following situation will be puzzling : two button are both in pressed state !

Rashid Umarov
Admin
12265
Rashid Umarov  
Which button do you mean? See TradePad_Sample (I agree it is not the easiest sample)

FuliangQ
52
FuliangQ  
Rosh:
Which button do you mean? See TradePad_Sample (I agree it is not the easiest sample)

from the cutted image , the button P and T are both in the pressed state , so i want to know how to release the pressed button in program so that

  only one button is in the pressed state at any time . 

               pressed button

Rashid Umarov
Admin
12265
Rashid Umarov  
You must check property OBJPROP_STATE of all buttons and switch their ones as you need.



FuliangQ
52
FuliangQ  
Rosh:
You must check property OBJPROP_STATE of all buttons and switch their ones as you need.


 

thanks for your reply .
To add comments, please log in or register