Download MetaTrader 5

How to Change MessageBox font

To add comments, please log in or register
rod178
272
rod178  

I'm searching for a way to change, at run time, the MessageBox font to unispace eg "Courier New".

The reason being that I desire to output columns of numbers, which I want to right justify. 

peter.MT4Web
158
peter.MT4Web  

Hi rod178!

The MessageBox is the Windows MessageBox. - you have to change the System Fonts.

Use \t and \n to format the text.

rod178
272
rod178  
eddie:

Hi rod178!

The MessageBox is the Windows MessageBox. - you have to change the System Fonts.

Use \t and \n to format the text.


Thanks for the response.

 

Already use \t and \n, the issue is that I still require a font such as "Courier New".  

 

I should have realise that MT4 was just using a Windows MessageBox.  Need to change the font at runtime, so maybe will have a look WinAPI.

To add comments, please log in or register