Errors, bugs, questions - page 1164

 
There you go. Cool ) need to get up to date.
 
marketeer:

Well, no. It's not like that. You don't need a special bold font. There is a WinAPI (in particularCreateFont) which I'm sure MQ already uses and you just need to pass parameters from WinAPI to MQL. Some of the parameters are already passed through (name, size).

Including a font in the resource is, IMHO, a more specific requirement than supporting standard fonts, available in almost all font programs.

The inclusion of a font is very effective because a custom font can contain not only characters but also graphical interface elements. Unlike images, a font can change its colour and size. Font takes less space than bmp image. Font can be any of thousands of already existing fonts. In general the advantages are numerous.
 
tol64:

Don't bother, it's all been done for a long time. UseTextSetFont(). ;)

In Help, there is an example of use:TextOut()

I showed my example in this article:MQL5 Recipes - Controls in Indicator Subwindow - ScrollBar >>>>.

What good are those functions if the font still cannot be included as a resource in ex5. This is exactly the problem.
 
C-4:
What's the point of these features if you still can't include a font as a resource in ex5. That's the problem, isn't it?

But that's another question. The original question was about how to manage the properties of the available (available) fonts.

And don't you have enough of this huge list of options:


 
tol64:

But that's another question. The original question was about how to manage the properties of the available (available) fonts.

And don't you have enough of this huge list of options:

Maybe I do. I haven't figured it out yet myself))) In general, the feature is interesting. I admittedly didn't know it existed.
 
C-4:
Maybe it does. I haven't figured it out yet myself)). It's an interesting feature, though. I admittedly didn't know it existed.
Great! ) Then congratulations on the new function. ))
 

When committing changes in MQL5 Storage, error 170004 occurred. This is the second time I've seen this.

1

 
tol64:

Don't bother, it's been done for a long time. UseTextSetFont(). ;)

In Help, there is an example of use:TextOut()

I showed my example in this article:MQL5 Recipes - Controls in Indicator Subwindow - ScrollBar >>>>.

Not quite. It is in drawing, i.e. in the context of TheXpert tip. You cannot apply it to OBJ_LABEL now.
 
C-4:
The inclusion of a font is very effective because a custom font can contain not only characters but also graphical elements. Unlike a picture, a font can change its colour and size. Font takes less space than bmp image. Font can be any of thousands of already existing fonts. So there are many advantages.
No one is arguing with that. It is just as useful to support font outline in objects, IMHO.
 
marketeer:
Not really. It is in drawing, i.e. in the context of TheXpert board. You cannot apply it to OBJ_LABEL now.

Ah, that's why I didn't know about this function!

I remember now, I encountered this problem many months ago and I had already come across this function while searching, but it really didn't work in OBJ_LABEL. So I quickly forgot about it.

Too bad of course that such a useful function is not available in OBJ_LABEL

Reason: