BCB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[BCB] BCB1: Popup Troubles
While on the topic of Popup menus, I'm also having some difficulty
implementing w/ BCB3.
I created a popup menu at design time, and I would like to assign
it to objects that are created dynamically at run time. The
components are stored in an STL list. If I create a pointer and
assign:
TPopupMenu *m_pNewCompMenu=MainScreen->MyPopupMenu;
it's ok. When I assign the popup menu to the 'PopupMenu' property of
a newly created component:
m_pGroup=new TPanel(this); // ok
m_pGroup->Parent=Parent; // ok
m_pGroup->PopupMenu=MainScreen->m_pNewCompMenu; // fails here
I don't understand why it fails.
Thanks in advance for any all help.
-Nick P. Gianakas
W Komornicki's Home Page |
Main Index |
Thread Index