TPopupMenu, submenu OnClick


Ive created a submenu on TPopupMenu:
[code]
TMenuItem *Pos = new TMenuItem(NULL);
Pos->Caption = "Submenu";
Menu->Items->Add(MenuPodre); // (Menu - TPopupMenu)
[/code]
How to add OnClick event for this submenu?

Comments

  • :
    : Ive created a submenu on TPopupMenu:
    : [code]:
    : TMenuItem *Pos = new TMenuItem(NULL);
    : Pos->Caption = "Submenu";
    : Menu->Items->Add(MenuPodre); // (Menu - TPopupMenu)
    : [/code]:
    : How to add OnClick event for this submenu?




    Menu->OnClick();

    I think !
  • IleJuzSerwow - the number of servers in binary file servers.tet
    IDServer - my structure
    pobierz.name (IDServer.name) - char*
    Mojeserwery1 - TMenuItem i TMainMenu
    76 - sizeof(IDServer)

    [code]
    fstream plik_serwy ("data//servers.tet", ios::binary | ios::in);
    for (int i=0; iCaption = pobierz.name;
    MenuGlowne->OnClick() = Klikwserwie;
    Mojeserwery1->Add(MenuGlowne);
    };
    [/code]

    How can i make the [b]DIFFERENT[/b] OnClick events in all of the new TMenuItems?

  • you have already done that in your reply
    please clarify your question
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories