Errors, bugs, questions - page 1596

 
Karputov Vladimir:
As an option, use kanvas in COLOR_FORMAT_XRGB_NOALPHA mode

Thank you Vladimir. This is a good way out.

//---

Please advise on the fonts as resources.

Trying:

#resource "verdana.ttf"
Getting:

Unknown resource type 'D:\Program Files\MetaTrader...

 
Andrey Voytenko:

Thank you Vladimir. This is a good way out.

//---

Please advise on the fonts as resources.

Trying:

I'm getting it:

Unknown resource type 'D:\Program Files\MetaTrader...

I haven't experimented here yet. I don't know.
 
Andrey Voytenko:

Thank you Vladimir. This is a good way out.

//---

Please advise on the fonts as resources.

Trying:

I'm getting it:

Unknown resource type 'D:\Program Files\MetaTrader...

Not supported and not planned.
 
Vasiliy Sokolov:
Not supported and not planned.

I read this in TextSetFont help:

If font name uses "::", font is loaded from EX5 resource . If fontname is specified with an extension, the font is loaded from a file...

 
Anton Zverev:
One geek got banned, couldn't reply. I'll try to localise and provide in the branch (I don't believe in Service Desk) the short code that causes the crash.

Crash Counsellor

// MT5-Crash (build 1340)

const string NameObject = __FILE__;
const string NameResource = "::" + NameObject;

const int Width = 1000;
int Height = Width;

void OnInit()
{
  ObjectCreate(0, NameObject, OBJ_BITMAP_LABEL, 0, 0, 0);

  ObjectSetString(0, NameObject, OBJPROP_BMPFILE, NameResource);

  EventSetMillisecondTimer(1);
}

void OnTimer()
{
  Height <<= 1;
  
  uint Data[];
  
  ArrayResize(Data, Width * Height);

  ResourceCreate(NameResource, Data, Width, ArraySize(Data) / Width, 0, 0, Width, COLOR_FORMAT_ARGB_NORMALIZE);
}
 
Why can't anopen TPposition be set (modify) on MetaQuotes-Demo-hedge?
 
Add to the OrderCheck description that the balance is returned without a fee.
 
Anton Zverev:

Crash Advisor

Thank you
 
I can't load my programme, this window appears:.... Please help.
Files:
kwkfk1hj_3.png  1742 kb
 
cthsq09022004:
Can't load my program, this window appears:
What is your operating system, bit rate? What is the build of the terminal? If you install the program from this link, will it run?
Reason: