Libraries: EasyAndFastGUI library for creating graphical interfaces - page 22
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
Hi colleagues!
I managed to reduce the number of warrnings from 18 to 6 by replacing the object name with "CElementBase::".
And those 6 are reduced to 4 types of errors, which I give below. Please help me to fence them correctly.
1. How to correctly replace "m_tabs.GetButtonPointer(m_selected_tab)." with the text "CElementBase::"?
2. And here - when I replace "el." with "CElementBase::". - there is a new compilation error "IsAvailable - access to non-staticmember of function" - how to fix this varning correctly?
3. the same line: when I replace "el.IsLocked()" with the text "CElementBase::IsLocked" : error "IsLocked - access to non-static member of function".
4. and lastly - what is the correct way to replace "m_windows[0].IsLocked()"?
It would be great to use this library, but I need to solve these problems first.
Thanks in advance!
Hello, colleagues!
I was able to reduce the number of warrnings from 18 to 6 by replacing the object name with "CElementBase::".
el.CElementBase::IsLocked() ?
Edgar Akhmadeev, thank you very much, Colleague!
It worked! ))
Greetings, colleagues!
Can you please tell me how to create two windows using this library? I am writing an Expert Advisor that consists of two windows: 1) trading panel, and 2) Watch List.
The first window with the trading panel is created and works without problems:
CWindow m_window;
CreateWindow(m_window, "META TOOLS",1,1,175,175,200,false,false,true,true) + adding buttons:
But when adding:
CWindow m_watchlist_window;
CreateWindow(m_watchlist_window, "Watch List",150,1,100,100,150,false,false,true,true,false)
CreateButton(m_watchlist1_btn, "EURUSD",m_watchlist_window,0,245,25,60,30)
then the EURUSD button appears in the air... i.e. another separate window is not created... why?
This UI is created in the context: class CProgram : public CWndCreate
I complete the creation of the UI with the command
CWndEvents::CompletedGUI()
Could you please tell me if you managed to create a multi-window UI?
I'm talking about two independent windows. I.e. the variant with appearing dialogue window (like for settings) is not suitable. You need both windows to be always visible and independently clickable. Why separate windows? Because the first one - Trade Panel - is a fixed size. The second - Watch List - the size of the window changes as the number of items added to it is added or reduced.
Hi guys!
Have you been able to create more than 1 independent window using this library? That is to call WindowCreate() method more than once to additional windows on the chart within same EA?
I can successfully create 1 window. But then when trying to create the 2nd one - it does NOT appear...
Any ideas why?
Or, an example, how did you manage to create additional windows (not dialogs).
Thanks!
Could you please tell me how to create two windows using this library?
You can't. Everything is built around one main window. One of the reasons why I started writing my own library )
No way. Everything is built around one main window. One of the reasons why I started writing my own library )
Thanks, Oleksii Chepurnyi! I would like to do without this library after all. It is very well done.
Guys, any other versions? Maybe someone bypassed this problem and managed to create more than 1 window?
You can see in the library code that a newly created window is added to the "common array of elements". So there can be more windows than one...? Pay attention to this piece of code in the library:
Hello everyone, how are you? Is there a limit to CreateSimpleButton? I am not able to put more than 6 simple buttons on the window. I am using the code of the graphical interfaces x (mql4). I had the uninit reason 8. I am very grateful to Anatoli Kazharski Best, RDT
I found out that the error was with the metatrader 4 itself, I was compiling the EA on the same chart several times. I noticed that if I make the changes and close the graph and open a new one and then put the EA in it, the changes are applied correctly. Anatoli, thank you very much for all the exceptional and complete work. Best, RDT