TuTaMixx Posted March 27, 2012 Share Posted March 27, 2012 (edited) Merhaba arkadaşlar , AMS'de TreeList'te sağ tıklandığı zaman açılabilen bir menü nasıl yapabilirim vede bu menüdeki seçeneklere nasıl görev verebilirim ? Edited March 27, 2012 by TuTaMixx Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 27, 2012 Share Posted March 27, 2012 On ContextMenu evresine: [codebox]tMenu = {}; tMenu[1] ={}; tMenu[1].Text = "Menu 1"; tMenu[1].ID = 100; tMenu[1].IconID = 15; tMenu[1].Checked = false; tMenu[1].Enabled = true; tMenu[2] ={}; tMenu[2].Text = "Menu 2"; tMenu[2].ID = 101; tMenu[2].IconID = 1; tMenu[2].Checked = false; tMenu[2].Enabled = true; nMenu = Application.ShowPopupMenu(System.GetMousePosition(true, Application.GetWndHandle()).X, System.GetMousePosition(true, Application.GetWndHandle()).Y, tMenu, TPM_LEFTALIGN, TPM_TOPALIGN, true, true) if nMenu == 100 then -- menu 1 seçilince çalışacak kodlar elseif nMenu == 101 then -- menu 2 seçilince çalışacak kodlar end[/codebox] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.