Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7

Thread: right click

  1. #1
    Join Date
    Jun 2007
    Posts
    16

    right click

    hello
    i need add a custom right click menu in my project...
    You can help me?

    sample :
    Attached Images

  2. #2
    Join Date
    Jun 2007
    Posts
    16
    not answer ????

  3. #3
    Join Date
    May 2005
    Posts
    1,115
    Never know what life is gonna throw at you.
    (Based on a true story.)

  4. #4
    Join Date
    May 2005
    Posts
    1,115
    Code:
    if(e_Type == RIGHT_BUTTON_DOWN)then
      tblMenu = {};
      tblMenu[1] ={};
      tblMenu[1].Text = "&New Menu";
      tblMenu[1].ID = 100;
      tblMenu[1].IconID = 0;
      tblMenu[1].Checked = false;
      tblMenu[1].Enabled = true;
      tblMenu[1].SubMenu = {};
      tblMenu[1].SubMenu[1] = {};
      tblMenu[1].SubMenu[1].Text = "&SubItem 1";
      tblMenu[1].SubMenu[1].ID = 101;
      tblMenu[1].SubMenu[1].IconID = 1;
      tblMenu[1].SubMenu[1].Checked = false;
      tblMenu[1].SubMenu[1].Enabled = true;
      tblMenu[1].SubMenu[2] = {};
      tblMenu[1].SubMenu[2].Text = "S&ubItem 2";
      tblMenu[1].SubMenu[2].ID = 102;
      tblMenu[1].SubMenu[2].Checked = false;
      tblMenu[1].SubMenu[2].Enabled = true;
      
      nRes = Application.ShowPopupMenu(e_X, e_Y, tblMenu, TPM_LEFTALIGN, TPM_TOPALIGN, true, true);
    
      if(nRes == 0)then
          Dialog.Message("Menu Result","Cancelled");
      else
          Dialog.Message("Menu Result","Menu ID selected = "..nRes);
      end
    end
    Never know what life is gonna throw at you.
    (Based on a true story.)

  5. #5
    Join Date
    Jun 2007
    Posts
    16
    Thank You Very Much

  6. #6
    Join Date
    Jul 2009
    Posts
    137

    thank u

    thank u , but if there are any example for it that would be great

  7. #7
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by mimo View Post
    thank u , but if there are any example for it that would be great
    Just copy the code and paste it in a button's On Click event... There ya go, an example
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts