Example

Created at 20 Mar 2020, 01:49
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DO

dordkash@gmail.com

Joined 30.09.2017

Example
20 Mar 2020, 01:49


Hi

Where can I find examples of Button and stakpanel and canvas and toggele button and Dockborder?

I want to know how to use them and their subsets


@dordkash@gmail.com
Replies

PanagiotisCharalampous
20 Mar 2020, 08:18

Hi there,

There are some samples here, you can have a look.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

dordkash@gmail.com
20 Mar 2020, 11:26

RE:

PanagiotisCharalampous said:

Hi there,

There are some samples here, you can have a look.

Best Regards,

Panagiotis 

Join us on Telegram

Where do you mean?
Do you have a link?

I've seen some of the code but it's not comprehensive


@dordkash@gmail.com

... Deleted by UFO ...

PanagiotisCharalampous
20 Mar 2020, 13:44

Hi there,

Here it is. If you have specific questions, let me know.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

dordkash@gmail.com
20 Mar 2020, 13:56

RE:

PanagiotisCharalampous said:

Hi there,

Here it is. If you have specific questions, let me know.

Best Regards,

Panagiotis 

Join us on Telegram

Oh my God
It was very helpful, great
I've been looking for this information for a long time
thank you so much


@dordkash@gmail.com

dordkash@gmail.com
20 Mar 2020, 18:30

RE:

PanagiotisCharalampous said:

Hi there,

Here it is. If you have specific questions, let me know.

Best Regards,

Panagiotis 

Join us on Telegram

Where's the problem with this code is that all the keys are overlapping?

 

                foreach (var TFFF in TFF)
                {
.
.
.
.
.
.
.
.
.
.
.
.

                    var BTF3 = new Button 
                    {
                        Text = TFFF.ToString(),
                        FontSize = 11,
                        ForegroundColor = Color.Blue,
                        FontWeight = FontWeight.UltraBold,
                        Margin = 10,
                        IsVisible = true,
                        BackgroundColor = Color.Empty,
                        HorizontalAlignment = HorizontalAlignment.Right,
                        VerticalAlignment = VerticalAlignment.Top




                    };


                    BTF3.Click += E => Chart.TryChangeTimeFrameAndSymbol(TFFF, SymbolName);
                    Chart.AddControl(BTF3);
                }

 


@dordkash@gmail.com

PanagiotisCharalampous
23 Mar 2020, 08:23

Hi there,

Can you provide the complete source code and explain what is the problem?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

dordkash@gmail.com
23 Mar 2020, 10:17

RE:

PanagiotisCharalampous said:

Hi there,

Can you provide the complete source code and explain what is the problem?

Best Regards,

Panagiotis 

Join us on Telegram

In fact, I would like to know if there are several Button on the chart, do I need to use a Stakepanel or a Wrappanel or ... or can the Button be used alone?


@dordkash@gmail.com

PanagiotisCharalampous
23 Mar 2020, 11:39

Hi,

The button can be used alone.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

dordkash@gmail.com
23 Mar 2020, 11:42

RE:

PanagiotisCharalampous said:

Hi,

The button can be used alone.

Best Regards,

Panagiotis 

Join us on Telegram

Thankyou


@dordkash@gmail.com