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
This code doesn't compile. Build 1702.
'pipvaluecalculator.mq5' pipvaluecalculator.mq5 1 1
...
'm_client_area' - private member access error PipValueCalculator.mqh 118 60
'm_client_area' - private member access error PipValueCalculator.mqh 118 91
'm_client_area' - private member access error PipValueCalculator.mqh 129 72
'm_client_area' - private member access error PipValueCalculator.mqh 148 75
'm_client_area' - private member access error PipValueCalculator.mqh 168 77
'm_client_area' - private member access error PipValueCalculator.mqh 187 72
6 error(s), 0 warning(s) 7 1
As a side note, unless I missed it, you should specify where to place the files. We need to try and look at the code to know we need to create a "Layouts" folder in Include and to place Box.mqh file inside it.
I am using the build 1755.
Now the member m_client_area on class CDialog on Controls\Dialog.mqh is private and new methods were created to get Width and Height properties.
Kode ini tidak dikompilasi Bangun 1702
'pipvaluecalculator.mq5' pipvaluecalculator.mq5 1 1
...
'm_client_area' - kesalahan akses anggota pribadi PipValueCalculator.mqh 118 60
'm_client_area' - kesalahan akses anggota pribadi PipValueCalculator.mqh 118 91
'm_client_area' - kesalahan akses anggota pribadi PipValueCalculator.mqh 129 72
'm_client_area' - kesalahan akses anggota pribadi PipValueCalculator.mqh 148 75
'm_client_area' - kesalahan akses anggota pribadi PipValueCalculator.mqh 168 77
'm_client_area' - kesalahan akses anggota pribadi PipValueCalculator.mqh 187 72
6 error (s), 0 warning (s) 7 1
Jadi catatan, kecuali jika saya melewatkannya, anda harus menentukan di mana tempat file-file tersebut. Sebagai catatan, kecuali jika saya melewatkannya, Anda harus menentukan di mana menempatkan file-file tersebut. Kita perlu mencoba dan melihat kode untuk mengetahui bahwa kita perlu membuat folder "Layouts" di Include dan menempatkan file Box.mqh di dalamnya.Kita perlu mencoba dan melihat kode untuk mengetahui bahwa kita perlu membuat folder "Layouts" di Include dan menempatkan file Box.mqh di dalamnya.
I have encountered a problem with this useful add-on.
I ask for advice from those who know about standard controls.
Since this add-in with panels uses standard classes CWnd, CWndClient, I assume that knowledge of their internal structure may be enough to understand where the "dog is in the fight".
The essence of the problem. We take the Controls2.mq5 programme from the article (for compilation we also need ControlsDialog2.mqh and Box.mqh), compile it, run it.
Almost everything works fine except for the "datapicker". It only opens and closes, but in the open state it does not react to clicks, skipping events to the underlying controls.
The original similar demo from MQ (Experts/Examples/Controls.mq5) works with "datapicker" normally.
Almost everything works fine except for the "datapicker". It only opens and closes, but in the open state it doesn't react to presses, skipping events to underlying controls.
The original similar demo from MQ (Experts/Examples/Controls.mq5) works with "datapicker" normally.
The question is removed. In CDatePicker there is no BringToTop call when the dropdown is expanded, as is done in CComboBox, for example. In the standard example, the CDatePicker works due to the fact that its initialisation was moved (intentionally or accidentally) after the creation of the "leafbox", which is topologically below it. And the controls in CWndContainer::OnMouseEvent are bypassed from the last added to the first.
To fix it normally, it would be necessary to override CDatePicker::ListShow, but it is not virtual. We have to redefine CDatePicker::OnClickButton and add BringToTop there. However, we cannot do it correctly as well as with any virtual method in the standard library, because all member variables are declared private. In particular, it is impossible to write:
because m_drop is not available. We have to call BringToTop both when opening and collapsing.
and there's a few mistakes: