Yep, thanks, it worked... I tried using ObjectMove myself...
I'm creating a panel with the help of kanvas... I need to move it as far as possible on the chart...
And if the panel is created on the basis of a standard dialogue? Then all elements created in the dialogue and added to it will be dragged together with the dialogue.
barabashkakvn: What if the panel is created on the basis of a standard dialogue? Then all elements created in the dialogue and added to it will be dragged together with the dialogue.
Yes, it's a handy feature, I agree... I've been doing that until now... but there is a question how to add custom graphics to the panel.... in general it is necessary to make a kanvas-like control : public CWndObj. Now I'm thinking about this question...
denkir: Yes, a handy feature, I agree..... I've been doing that until now... but there was a question how to add custom graphics to the panel.... in general it is necessary to make a kanvas-like control : public CWndObj. Now I'm thinking about this question...
denkir: Yes, a handy feature, I agree..... I've been doing that until now... but there was a question how to add custom graphics to the panel.... in general it is necessary to make a kanvas-like control : public CWndObj. Now I'm thinking about this question...
There is a panel of CAppDialog type. Let one of its elements be a graphical label ofCBmpButtontype . So, is there any way to create a canvas and link it with the specified label? The goal is to have a controllable panel element with custom graphics capabilities...?
There is a panel of CAppDialog type. Let one of its elements be a graphical label ofCBmpButtontype . So, is there any way to create a canvas and link it with the specified label? The goal is to have a controllable panel element with custom graphics capabilities...?
Thanks...
You can create canvases (i.e. multiple canvases) without linking to a graphics object via the Create method, and then you assign these resources to the BmpButton. You can even try to make animation. By the way, I want to think about animation for a long time.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
The question is this. What could be the best implementation on moving the kanvas around the graph? Something like method:
"canvas" - creates standard OBJ_BITMAP_LABEL or OBJ_BITMAP. In the help there are functions on how to place them on the chart
I didn't notice the discussion above at once :) - actually the same as ZORDER, only X and Y
"canvas" - creates standard OBJ_BITMAP_LABEL or OBJ_BITMAP. There are functions in the help to place them on the chart
I didn't notice the discussion above at once :) - actually the same as ZORDER, only X and Y
Aha, thanks, it worked... I tried using ObjectMove myself...
Forum on trading, automated trading systems and testing trading strategies
Discussion of the article "Learning CCanvas class. Realisation of transparency of graphical objects"
barabashkakvn, 2015.03.10 12:00 AM
And what is the purpose of moving? Maybe it is better to redraw the drawing on the canvas?Yep, thanks, it worked... I tried using ObjectMove myself...
What if the panel is created on the basis of a standard dialogue? Then all elements created in the dialogue and added to it will be dragged together with the dialogue.
Yes, a handy feature, I agree..... I've been doing that until now... but there was a question how to add custom graphics to the panel.... in general it is necessary to make a kanvas-like control : public CWndObj. Now I'm thinking about this question...
Watch the video from the post.
After 15 March will be in the source code
Yes, a handy feature, I agree..... I've been doing that until now... but there was a question how to add custom graphics to the panel.... in general it is necessary to make a kanvas-like control : public CWndObj. Now I'm thinking about this question...
What do you mean by"custom graphics":
What do you mean, "custom graphics,"
Vladimir, I wanted to ask you something else.
There is a panel of CAppDialog type. Let one of its elements be a graphical label of CBmpButtontype . So, is there any way to create a canvas and link it with the specified label? The goal is to have a controllable panel element with custom graphics capabilities...?
Thanks.
Vladimir, I wanted to ask you something else.
There is a panel of CAppDialog type. Let one of its elements be a graphical label of CBmpButtontype . So, is there any way to create a canvas and link it with the specified label? The goal is to have a controllable panel element with custom graphics capabilities...?
Thanks...
Vladimir, thanks for the tip, it all worked out!
Yes, canvasses are very powerful :-)
We are waiting for interesting articles from you!