Topics
Replies
ctid5996231
21 Nov 2024, 11:35
RE: RE: FontFamily in Button Text?
@Panagiotis
My platform has just updated itself to 5.0.46, and the Button font issue appears to have been fixed, thanks…
However, something else is now broken, all buttons' ForegroundColor is now white, and I'm unable to change it…?
Thanks,
Mat
@ctid5996231
ctid5996231
18 Nov 2024, 09:31
RE: RE: RE: Inactive Status
firemyst said:
PanagiotisCharalampous said:
firemyst said:
An example of an even easier method, which I use, is:
if (Symbol.MarketHours.IsOpened()) { // market is open, do what you want }else { //market is closed for the symbol. Do what you want }
Market hours are different to market sessions. Market hours are set by the broker. Market sessions are global.
Fair point. But the OP said when the market was “open” and didn't specifically mention “market sessions” (although the OP did say “inactive” just as they said “open”).
So since it was vague to me, I provided another alternative just in case that's what the OP meant.
Although Panagiotis gave me the answer I was looking for, your response is also very useful and very much much appreciated, thank you :)
@ctid5996231
ctid5996231
14 Nov 2024, 11:43
RE: FontFamily in Button Text?
afhacker said:
Hi,
As a workaround you can try setting Button content to a TextBlock with your font properties instead of using Button Text property:
var button = new Button()
{
Content = new TextBlock {Text = "Test", FontFamily = "Consolas", FontSize = 20},
Width = 100,
Height = 30,
IsVisible = true,
};
Oh, wow. That is interesting, thank you!
@ctid5996231
ctid5996231
13 Nov 2024, 12:33
RE: RE: FontFamily in Button Text?
PanagiotisCharalampous said:
ctid5996231 said:
@Panagiotis?
Hi there,
It looks like a bug. The team will investigate and resolve in an upcoming update.
Best regards,
Panagiotis
Epic, thank you!
@ctid5996231
ctid5996231
04 Nov 2024, 18:27
I'm having something similar.
While developing cBots and Plugins I find that after a few times making changes and rebuilding the code, the plugin / bot either doesn't run or, in backtesting the play button is “greyed out” i.e. a darker shade of green than it should be. Restarting cTrader fixes the issue.
Hope someone figures out what it is :)
Mat
@ctid5996231
ctid5996231
26 Jun 2024, 08:21
( Updated at: 26 Jun 2024, 11:44 )
RE: Height of custom ASP tab?
PanagiotisCharalampous said:
Hi Mat,
Unfortunately it is not.
Best regards,
Panagiotis
No worries, thanks for replying :)
@ctid5996231
ctid5996231
26 Jun 2024, 08:20
( Updated at: 26 Jun 2024, 11:44 )
RE: RE: RE: Referencing active chart from plugin
PanagiotisCharalampous said:
matcwhite said:
matcwhite said:
Hi again, I have another query, related to this…
If there is currently no active frame, is it possible to get a list of current frames/charts and to programatically set the active frame, or at least reference a chart/frame instead?
What I've found is that often while e.g. using Remote Desktop etc. the chart has lost focus so there is no currently active frame. It would be nice to be able to set the frame/chart if there isn't an active one.
Many thanks in advance,
Mat
@Panagiotis?
Hi there,
This is not possible at the moment.
Best regards,
Panagiotis
No worries, thanks for your reply :)
@ctid5996231
ctid5996231
09 Dec 2024, 10:44
RE: Remove HotKey from chart
PanagiotisCharalampous said:
That would be useful, thanks.
Mat
@ctid5996231