joshatt:
And this problem is not related to the spacebar before "Bold" - a list without any space still fails.
Could anyone please give me a hand?
How about this code?
enum fonts { fntArial, // Arial fntCalibriBold // Calibri Bold }; extern fonts FontType = fntCalibriBold; string fontname[] = {"Arial", "Calibri Bold"}; alertbutton.Font(fontname[FontType]);
Nagisa Unada:
How about this code?
Marvellous! This helps me understand ENUM deeper. You saved my day. Thanks a lot!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I did some search work, and the following code works with CButton font type:
However, my effort to make it an enum list failed:
And this problem is not related to the spacebar before "Bold" - a list without any space still fails.
Could anyone please give me a hand?