Howdy, Stranger!

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

Categories

TPopupMenu, submenu OnClick

mlody3kmlody3k Member Posts: 2

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

  • luiseduardoluiseduardo Member Posts: 5
    :
    : 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 !
  • mlody3kmlody3k Member Posts: 2
    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?

  • luckyboyluckyboy Member Posts: 105
    you have already done that in your reply
    please clarify your question
Sign In or Register to comment.