C1MainMenu highlighted item

Posted by: steve.wilson.ctr on 15 January 2020, 10:04 am EST

    • Post Options:
    • Link

    Posted 15 January 2020, 10:04 am EST

    Can anyone tell me if there is a way to tell programmatically which item is highlighted on the menu? (IE mouse over it)

    I have a customer that would like to have the currently highlighted item bring up the correct section of the help file when F1 key pressed. (Context sensitive help) I have been able to do all the controls except the C1MainMenu.

    The standard .NET menustrip has a ‘selected’ member, but I don’t see anything similar in the C1MainMenu.

    Any help would be appreciated.

  • Posted 16 January 2020, 2:18 am EST

    Hello,

    We have escalated this to the developers and will let you know once we get any update on this from their end.

    [Internal Tracking ID : 417248]

    Regards,

    Prabhat Sharma.

  • Posted 30 January 2020, 8:38 am EST

    Any idea when you will here something?

  • Posted 31 January 2020, 5:03 am EST

    Hi Steve,

    We are asking the developers for the updates, will let you know soon.

    Regards,

    Prabhat

  • Posted 3 March 2020, 10:13 am EST

    Any news yet, my customer is hounding me for an update?

  • Posted 6 March 2020, 7:30 am EST

    Hi Steve,

    You can use the CurrentLinkChanged event of C1MainMenu as given in code snippet below to get the Current Link on hovering with a mouse:

    private C1CommandLink _selectedLink = null;
            private void c1MainMenu1_CurrentLinkChanged(object sender, C1.Win.C1Command.CommandLinkEventArgs e)
            {
                _ selectedLink = e.CommandLink;
                Text = _selectedLink?.Text; // Show current link text on Window title
            }
    

    Please let us know if you found this useful.

    Regards,

    Prabhat Sharma.

Need extra support?

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

Learn More

Forum Channels