Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to add rightclick mouse buttons in scintila wnd

how to add rightclick mouse buttons in scintila wnd

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mirraa
    wrote on last edited by
    #1

    hi i'm programming a document using scintilla wnd... here on right clicking mouse button my own popup menu should come..but by default it is showing some popup menu with cut,copy,paste... i have added mine using RButtonUp function but it is not sensing that function...any help please..thanx in advance...

    I 1 Reply Last reply
    0
    • M mirraa

      hi i'm programming a document using scintilla wnd... here on right clicking mouse button my own popup menu should come..but by default it is showing some popup menu with cut,copy,paste... i have added mine using RButtonUp function but it is not sensing that function...any help please..thanx in advance...

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      Have you tried overriding OnRButtonDown? After all, that happen first... Or checked if there's an overridable member OnContextMenu? Lastly, have you added the macros (ON_WM_RBUTTONetc) to your message map? You need to hook up your handler as well as write it. Iain.

      M 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        Have you tried overriding OnRButtonDown? After all, that happen first... Or checked if there's an overridable member OnContextMenu? Lastly, have you added the macros (ON_WM_RBUTTONetc) to your message map? You need to hook up your handler as well as write it. Iain.

        M Offline
        M Offline
        mirraa
        wrote on last edited by
        #3

        yah!i have tried with adding WM_RBUTTONUP message using class wizard but it is not at all sensing the function when i press rightmousebutton ...even i tried with WM_RBUTTONDOWN through class wizard,neither is working.... i have avoided the default scintilla wnd's popmenu also by using SCI_USEPOPUP(false)... as you said these WM_RBUTTONUP are working well in other windows not in scintilla wnd... any help thanx in advance....

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups