I need to call the FontDialog and ColorDialog boxes in my Win32 app, but I can't find the correct event handler to proccess the request. Could someone please either tell me what I am missing or send me the proper code?
This is where I'm at right now:
#include <vcl/dialogs.hpp>
void __fastcall TEText::OpFontClick(TObject *Sender)
{
if (FontDialog->Execute())
{
FpFont = FontDialog->Font;
SetListBoxItems();
}
}
After I compile this in my app I get the following errors:
Undefinded symbol 'FpFont'
Call to undefined function 'SetListBoxItems'
Please Help!