I'll start by asking, maybe I just haven't found it :) Is there any text alignment, in a label for example, other than centre? And is there a possibility to set text style, bold, italic, etc.?
Oleksii Chepurnyi: I'll start by asking, maybe I just haven't found it :) Is there any text alignment, in a label for example, other than centre? And is there an option to set text style, bold, italic, etc.?
So far only like this:
//--- Font properties
m_canvas.FontSet(m_font,-m_font_size*10,FW_NORMAL);
//--- Draw text taking into account the centre alignment modeif(m_is_center_text)
{
x =m_x_size>>1;
y =m_y_size>>1;
m_canvas.TextOut(x,y,m_label_text,::ColorToARGB(clr),TA_CENTER|TA_VCENTER);
}
else
m_canvas.TextOut(x,y,m_label_text,::ColorToARGB(clr),TA_LEFT);
I already have it significantly different from what is published on the site.
And are suggestions for changes to the library being accepted? :)
And are suggestions for library changes being accepted? :)
At least they are always considered.
The MQ5 file.
Not the mqh you don't have to compile those.
At least always considered.
I'll start by asking, maybe I just haven't found it :) Is there any text alignment, in a label for example, other than centre? And is there an option to set text style, bold, italic, etc.?
So far only like this:
That's all it is for now:
First sentence then.
Enums.mqh.
Element.mqh
Haven't done the styles yet.
Then the first suggestion.
then the 2nd suggestion: make a GUI editor with drag-and-drop functionality
then 2nd suggestion: make a GUI-editor with drag-and-drop function
Good suggestion :)
It's easier with style.
First suggestion then.
Haven't done the styles yet.
Maybe I'll include them in the next update.
then 2nd suggestion: make a GUI-editor with drag-and-drop function.
I can't promise. I'll try to find time for it.
I can't promise. I'll try to make time for it.
Hmm, thought you'd say no, but here you are... cool!