CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
TMainMenu/TMenuItem bug?
Hello,
I attempting to add sub-menus at run-time and it appears that I cannot
perform this simple task with C++. At least not the way I do it in Delphi.
As near as I can tell, I am implementing the code correctly according to
on-line help. Examination of the VCL source code revealed an awful mess of
code that I'm still trying to decipher.
I have attached two very simple projects. One is the correctly working
Delphi version. The second is the equivalent C++ project. From what I can
tell of the VCL source and from on-line help, TMainMenu->Items is supposed
to return TMenuItem*, but instead appears to be returning TMenuItem. In
any event, I cannot dereference past TMainMenu->Items[0] even though
TMainMenu->Items->Count is greater than 1.
This looks like a genuine bug. Can anyone verify this or tell me what I'm
doing wrong?
Regards,
Michael
Menuflaw.zip
W Komornicki's Home Page |
Main Index |
Thread Index