Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ShortCutKey vs HotKey

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ShortCutKey vs HotKey

    1. hotkeys are great - well done!
    Quick suggestion - when the modal form caution comes up - might be as well to add that you need to check the Use Order Entry HotKeys under the General Tab for order entries to work.

    2. I tried coding a context menu item with

    _m3.ShortcutKeys = Keys.F11;

    but nothing happens. Is this incorrect coding or have I missed something?

    #2
    1) Thanks for your suggestion.
    2) Unfortunately this is beyond what we provide support for. In particular as we now have hot keys we would not support any code which potentially might conflict with the hot key concept.

    Comment


      #3
      ok lets throw it open

      Can anyone else answer this question in the forum?

      1. Is it possible to code a shortcut ( used to be ) Hotkey manager is of no value in this scenario.

      2. What am I missing to make it so?

      Comment


        #4
        Update

        Now I am using NT7 I stumbled across this list whilst looking for something completely different.

        Here is my solution

        AddMenuItem(1, "DeleteAll", new EventHandler(this.terminate),Keys.F11);

        This overrides the hotkey management as far as I can tell- but hey it works so I go with it.

        NB this is for relatively advanced programmers as far as I can tell ( certainly don't put myself in that category) and will most definitely not be supported.

        Comment


          #5
          Mindset--could you provide an example of where in the code you added this line of code, or where you found this?
          Jim-Boulder
          NinjaTrader Ecosystem Vendor - Elephant Tracks

          Comment


            #6
            Shortcut keys

            I basically got the idea from the msdn website which has loads of small examples of C#.
            the AddMenuItem was a piece of coding I paid a consultant to do - I just added the shortcut key.
            Edit - be aware that you have to choose your key carefully so that it doesn't interfere with NT7 hot key mapping. So Keys.NumPad123456,etc is a good idea as NT hotkeys doesn't use any of these.
            Last edited by Mindset; 06-04-2010, 02:18 AM.

            Comment


              #7
              thanks--I'll check into it...
              Jim-Boulder
              NinjaTrader Ecosystem Vendor - Elephant Tracks

              Comment


                #8
                Originally posted by Mindset View Post
                I basically got the idea from the msdn website which has loads of small examples of C#.
                the AddMenuItem was a piece of coding I paid a consultant to do - I just added the shortcut key.
                Edit - be aware that you have to choose your key carefully so that it doesn't interfere with NT7 hot key mapping. So Keys.NumPad123456,etc is a good idea as NT hotkeys doesn't use any of these.
                Mindset:

                If you do not mind sharing, could you post a snippet which shows how (context) and where (function) do you use the AddMenuItem call?

                Thanks

                Comment


                  #9
                  menu item

                  if(this.ChartControl != null && this.ChartControl.ContextMenuStrip != null)
                  {

                  AddMenuItems......

                  }

                  The addmenuitems is a separate object/method? that the coder has set up but I hope you can get the concept from the above

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  601 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  347 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  103 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  559 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  558 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X