Libraries: EasyAndFastGUI library for creating graphical interfaces - page 14
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
Hello.
CreateBitmapLabel - create a graphic resource
Attach - read the same resource and write to the same resource again.
Or do I understand something wrong?
Hello again :)
Is Time and Level even used anywhere? Couldn't find it anywhere...
What is SubWindowNumber used for?
My point is that ChartXYToTimePrice is quite a costly operation to perform on every mouse movement...
It's all in the comments. There's nothing to add.
It's all in the comments. There is nothing to add.
If you mean comments in the code, everything is clear there, but that's not what the questions are about :)
...
My point is that ChartXYToTimePrice is quite a costly operation to perform on every mouse movement...
To get the relative coordinate if the GUI is not in the main window.
To get relative coordinate when GUI is not in main window.
I'm more interested in why Attach? As far as I understand, it repeats the actions of CreateBitmapLabel
So maybe only calculate when the GUI is not in the main window? :)
There are also variants when the main GUI window is in the subwindow of the chart, and the dialogues are in the main window.
I'm more interested in why Attach? As far as I understand, it repeats the actions of CreateBitmapLabel
There is a code of CCanvas::Attach() method:
There is the code of the CCanvas::Attach() method:
Yes, and above CreateBitmapLabel. I've been looking at them. And as far as I understood, CreateBitmapLabel creates an empty resource, and Attach reads the resource (any) and writes it to m_pixels. And as I wrote above, we create a resource (CreateBitmapLabel) with the name name, then read the same resource (Attach) and again write the read into the same m_pixels
Or do I understand something wrong?
PS Experimentally without Attach everything works :)
...
PS Experimentally without Attach everything works :)
Really? So there's been some changes again. Something didn't work before for sure.
And after deleting GUI from the chart objects are deleted?
Really? So there's been another change. Something definitely wasn't working before.
And after removing the GUI from the graph, are the objects deleted?
Everything seems to be clean :)