Home > Back-end >  How to dynamically add and remove bcb6 popupmenu?
How to dynamically add and remove bcb6 popupmenu?

Time:09-30

Want to use the Edit to add new popupmenu - & gt; The item data
How do I use and delete?

CodePudding user response:

 
TMenuItem * TMenuItem=new TMenuItem (this);
TMenuItem - & gt; Caption=Edit1 - & gt; Text;
PopupMenu1 - & gt; The Items - & gt; Add (tMenuItem);

CodePudding user response:

Delete: PopupMenu1 - & gt; The Items - & gt; Delete (0);

CodePudding user response:

Double-click on the controls, not came out, the couple get to jump ship, don't use BCB, no way out!
  • Related