Skip to content

Textbox EnableNativeContextMenu ignored #1791

Closed

Description

@itg-assistant

Nikolajs Valters asked 2018-08-28 18:33:11 UTC

Hello!

Textbox EnableNativeContextMenu ignored when desktop have ContextMenu.

Nick.

Activity

  1. itg-assistant commented on Jun 13, 2026

    @itg-assistant
    Author

    Tiago (ITG) answered 2018-08-30 12:20:57 UTC

    Hi Nikolajs,

    I can't reproduce. Can you attach a sample?

    [Edit]

    Please inform also what version of Wisej are you running.

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 13, 2026
  3. itg-assistant commented on Jun 13, 2026

    @itg-assistant
    Author

    Nikolajs Valters answered 2018-08-30 15:17:25 UTC

    Sample app attached. Wisej v1.5.12.0

    Best regards,

    Nick

  4. itg-assistant commented on Jun 13, 2026

    @itg-assistant
    Author

    Tiago (ITG) answered 2018-08-30 17:00:13 UTC

    Hi Nikolajs,

    As you can read at TextBox class documentation is

    EnableNativeContextMenu - Enables or disables the browser's context menu.

    What your sample shows on Window1 is a Wisej ContextMenu, not a browser context menu.

    Nevertheless, there is a problem since your sample show the context menu defined in desktop to "leak" and show in Window1. If you use a Page instead of a Desktop, you can see that the context menu defined in the Page, doesn't show in Window1.

    The issue was logged as WJ-9174.

  5. itg-assistant commented on Jun 13, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2018-09-12 22:30:56 UTC

    Hi Nikolajs,

    WJ-9174 is fixed in our latest release (1.5.16).

    Best regards
    Frank

  6. itg-assistant commented on Jun 13, 2026

    @itg-assistant
    Author

    Andrew Niese answered 2018-10-06 21:07:27 UTC

    EnableNativeContextMenu does not work for me in 1.5.19. I've tried setting it on a form itself, a google map, an htmlpanel, and a regular panel. None of them work.

  7. itg-assistant commented on Jun 13, 2026

    @itg-assistant
    Author

    Tiago (ITG) answered 2018-10-06 23:28:18 UTC

    Hi Andrew,

    EnableNativeContextMenu works in lots of controls but it doesn't show on a small number of controls like Page, Panel, ComboBox and a few others.

    Logged as #1593 Native Context Menu doesn't show on some controls

  8. itg-assistant commented on Jun 13, 2026

    @itg-assistant
    Author

    Tiago (ITG) answered 2018-10-08 09:57:13 UTC

    Hi Andrew,

    Digging a bit further, it turns out that by design, native context menu is supported only in a small number of controls, mainly the ones where you can copy & paste:

    • ComboBox (editable)

    • TextBoxBase

    • UpDownBase

    • DateTimePicker

    All of these show the native (browser's) context menu except for the ComboBox. So I can't reproduce the problem you mention with TextBox.

    Please ignore the previous logged issue I referred.
    The issue #1595 ComboBox doesn't show Native context menu was created and is already fixed in our internal build. It will be part of the next public release.

  9. itg-assistant commented on Jun 13, 2026

    @itg-assistant
    Author

    Tiago (ITG) answered 2018-10-15 12:05:07 UTC

    Hi Andrew,

    The issue was fixed in release 1.5.23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions