Borland C++ Builder question
I just wanted to know how to change the font style of a control in C++ Builder on the fly. For example, suppose that the following occurs:
Panel = new TPanel(Form1);
//What do I write here?
I know that, for instance, if I wanted to change the font name to Times New Roman, you would just use the following:
Panel->Font->Name = "Times New Roman";
But there is no analogue for changing the font style; for instance, both of the following throw errors:
Panel->Font->Style = fsBold;
Panel->Font->Style->fsBold = true;
I've tried a couple other things, but nothing actually works. Any ideas?