I am trying to upgrade a project from C++Builder 10.3.1 to 11.1, and have a problem with the MainMenu not painting properly in 11.1 when Styles are used.
It works fine in 10.3.1, but in 11.1, when any style OTHER than Windows
is used, it doesn't paint properly.
Any ideas as to why this is happening?
I tried using an ActionMenuBar, ActionManager, and an ActionList, but it keeps coming up with syntax errors in the Vcl.ActnMan.hpp
file:
[bcc32 Error] Vcl.ActnMan.hpp(1496): E2293 ) expected
class PASCALIMPLEMENTATION TActionBarStyleList : public System::Classes::TStringList
{
typedef System::Classes::TStringList inherited;
private:
TActionBarStyle* __fastcall GetStyle(int Index);
public:
__property TActionBarStyle* Style[int Index] = {read=GetStyle};
public:
/* TStringList.Create */ inline __fastcall TActionBarStyleList()/* overload */ : System::Classes::TStringList() { };
/* TStringList.Create */ inline __fastcall TActionBarStyleList(bool OwnsObjects)/* overload */ : System::Classes::TStringList(OwnsObjects) { };
/* TStringList.Create */ inline __fastcall TActionBarStyleList(System::WideChar QuoteChar, System::WideChar Delimiter)/* overload */ : System::Classes::TStringList(QuoteChar, Delimiter) { };
// This next line is where the error occurs
/* TStringList.Create */ inline __fastcall TActionBarStyleList(System::WideChar QuoteChar, System::WideChar Delimiter, System::Classes::TStringsOptions Options)/* overload */ : System::Classes::TStringList(QuoteChar, Delimiter, Options) { };
/* TStringList.Create */ inline __fastcall TActionBarStyleList(System::Types::TDuplicates Duplicates, bool Sorted, bool CaseSensitive)/* overload */ : System::Classes::TStringList(Duplicates, Sorted, CaseSensitive) { };
/* TStringList.Destroy */ inline __fastcall virtual ~TActionBarStyleList() { }
};
p]1