Ribbon TextBox

Posted by: jfaria.blosis on 29 October 2019, 7:57 pm EST

    • Post Options:
    • Link

    Posted 29 October 2019, 7:57 pm EST

    Good Morning

    Is it possible to implement a shotkey on a RibbonTextBox?

    This would be the fastest way to move the mousepointer into the text box

    Thanks and Regards

    João Faria

  • Posted 29 October 2019, 9:36 pm EST

    Hi João,

    You can use the KeyTip property for this.

    Assuming that your textbox (ribbonTextBox1) is in a tab ‘ribbonTabHome’, you can use this:

    ribbonTabHome.KeyTip = "H";
    ribbonTextBox1.KeyTip = "T";
    

    Pressing ‘Alt + H + T’ will put the focus on the textbox.

    Regards,

    Jitender

  • Posted 29 October 2019, 9:57 pm EST - Updated 3 October 2022, 3:36 pm EST

    Thanks Jitender

    As you can see from the image below, i have:

    c1.win.c1ribbon.c1ribbon

    c1.win.c1ribbon.RibbonTab

    c1.win.c1ribbon.RibbonGroup

    c1.win.c1ribbon.RibbonTextBox

    What is the best and fastest way to reach the textBox via the keyboard??

    i do not seem to be able to solve this problem.

    Thanks and Regards

    Joao Faria

  • Posted 29 October 2019, 10:08 pm EST

    Have you tried setting KeyTip property?

    In your case, you can right-click on ‘Escalas’ tab, click on ‘Properties’ from the context menu. In the Properties window set KeyTip property (for example, ‘E’).

    Similarly, do the same for the textbox.

    Also, make sure that SupportsKeyTips of C1Ribbon is set to true.

    You can see the attached sample for an example.

    After executing the sample, the key combination ‘Alt + H + T’ would focus the textbox.

    TextBox_HotKey.zip

    Regards,

    Jitender

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels