plugin window size

Created at 28 Jan 2025, 09:48
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!
MO

moshe.g

Joined 09.01.2025

plugin window size
28 Jan 2025, 09:48


Hi All,
I have a plugin running a Chat in an iframe via a _webView, displayed inside a customFrame
I'd like to configure the default size of the window displaying the plugin.

Problem is:

a. customFrame.Width and customFrame.Height are read-only.
b. _webView.Width and _webView.Height control only the inner iframe content, not the overall window size.

Is it possible:

  1. To configure the size of the customFrame at the window level?
  2. If not, is it possible to create a button to dynamically adjust the window size?
_webView = new WebView();
var customFrame = ChartManager.AddCustomFrame("My Lovly Chat");
customFrame.Child = _webView;
customFrame.ChartContainer.Mode = ChartMode.Multi;
customFrame.Width =  some_size;
customFrame.Height = some_size;
_webView.Width = some_size;
_webView.Height = some_size;


Thanks!
 


@moshe.g