The Questions for CAppDialog and CSpinEdit thread worked great for me. I had gone down the same path of adapting the SpinEdit.mgh file but hadn't quite figured it all out. Kudos to Roddo Greenwood et al. for getting that sorted.
Roddo Greenwood
- www.mql5.com
Added topic Questions for CAppDialog and CSpinEdit I am rewriting my EA to use MQL4 newer Graphic Controls and I am having difficulties getting the EA to respond the way I would like. The first problem is I would like the CAppDialog to Align to the right side of the charts as that is where the Added topic Mt4 Alert Function trigger .vbs files...
Hello,
late post, but how can I catch the click on the increment and decrement button in the example above?
Thank you
You can use "SpinEditDouble.mqh" from this link to handle decimal numbers.
https://www.mql5.com/en/code/28029
Discover new MetaTrader 5 opportunities with MQL5 community and services
- www.mql5.com
Logging in to MQL5.com website
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The example code at https://www.mql5.com/en/docs/standardlibrary/controls/cspinedit works fine for me (v.5.00 build 2302) but when I change the minimum, maximum, and current value parameters from 10, 100, and 50 to numbers with a decimal (e.g., 0.00001, 0.00010, and 0.00010, respectively), I get the "truncation of constant value" warning and the spin edit is created on the chart but not populated. Does the spin edit not work with decimal numbers, or how can I adapt the code so it will work with numbers with a fixed number of decimal places? I am new to the objected oriented approach and am trying to learn from example code but did not find this issue addressed anywhere. Thanks in advance.