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#
  4. Context Menus will text box

Context Menus will text box

Scheduled Pinned Locked Moved C#
csharpswifthardwarequestion
9 Posts 4 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.
  • W Offline
    W Offline
    Wjousts
    wrote on last edited by
    #1

    I've noticed that Access has a neat text box embedded in the context menu that you can use to enter a filter for your records. I find this extremely swift and handy (shame they don't do the same for search as well) and I was wondering if there is any relatively easy way to incorporate this type on control in my C# project? I'm pretty sure the regular menu controls won't do it so I'm guess I'd have to write a custom control, but does anybody have a good idea of how much work would be involved so I can decide if it's really worth the effort for my application. I've never tried writting my own controls before!! Thanks

    C 1 Reply Last reply
    0
    • W Wjousts

      I've noticed that Access has a neat text box embedded in the context menu that you can use to enter a filter for your records. I find this extremely swift and handy (shame they don't do the same for search as well) and I was wondering if there is any relatively easy way to incorporate this type on control in my C# project? I'm pretty sure the regular menu controls won't do it so I'm guess I'd have to write a custom control, but does anybody have a good idea of how much work would be involved so I can decide if it's really worth the effort for my application. I've never tried writting my own controls before!! Thanks

      C Offline
      C Offline
      Carlos H Perez
      wrote on last edited by
      #2

      The standard menu just does not work with embedded child controls. I tried this myself, and the menu class won't budge to display an embedded control --I guess this could be, at least in Windows XP, because the Windows is Layered and thus possible painted on a memory buffer. It's not even possible to spy on the Window menu because is protected by the system. Just setting up the hook for getting the handle to menu window is a task in itself too. Most custom menu controls don't have support for this either. And yes, you need to write your own custom control and deal with alll the painting and handling of the keyboard to make the menu behave like a standard menu. If you have the time the it is a good learning excercise. If you don't you can always check the SharpLibrary popup menu control which does offer that feature. Regards, Carlos http://www.sharplibrary.com

      W N 2 Replies Last reply
      0
      • C Carlos H Perez

        The standard menu just does not work with embedded child controls. I tried this myself, and the menu class won't budge to display an embedded control --I guess this could be, at least in Windows XP, because the Windows is Layered and thus possible painted on a memory buffer. It's not even possible to spy on the Window menu because is protected by the system. Just setting up the hook for getting the handle to menu window is a task in itself too. Most custom menu controls don't have support for this either. And yes, you need to write your own custom control and deal with alll the painting and handling of the keyboard to make the menu behave like a standard menu. If you have the time the it is a good learning excercise. If you don't you can always check the SharpLibrary popup menu control which does offer that feature. Regards, Carlos http://www.sharplibrary.com

        W Offline
        W Offline
        Wjousts
        wrote on last edited by
        #3

        Thanks for the advice. I guess I'll live without for the time being :(

        J 1 Reply Last reply
        0
        • W Wjousts

          Thanks for the advice. I guess I'll live without for the time being :(

          J Offline
          J Offline
          J Dunlap
          wrote on last edited by
          #4

          The Fluid UI Toolkit[^] menu/commandbar will have this, but it does not exist yet. We are making progress on Fluid, and the commandbar system is high on our list. So bookmark our site, and check back periodically for downloads. We will also be posting articles on CodeProject about each of our controls as they are completed.

          "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
          "You must be the change you wish to see in the world." - Mahatma Gandhi

          W 1 Reply Last reply
          0
          • J J Dunlap

            The Fluid UI Toolkit[^] menu/commandbar will have this, but it does not exist yet. We are making progress on Fluid, and the commandbar system is high on our list. So bookmark our site, and check back periodically for downloads. We will also be posting articles on CodeProject about each of our controls as they are completed.

            "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
            "You must be the change you wish to see in the world." - Mahatma Gandhi

            W Offline
            W Offline
            Wjousts
            wrote on last edited by
            #5

            I'll keep an eye on it. Thanks.

            1 Reply Last reply
            0
            • C Carlos H Perez

              The standard menu just does not work with embedded child controls. I tried this myself, and the menu class won't budge to display an embedded control --I guess this could be, at least in Windows XP, because the Windows is Layered and thus possible painted on a memory buffer. It's not even possible to spy on the Window menu because is protected by the system. Just setting up the hook for getting the handle to menu window is a task in itself too. Most custom menu controls don't have support for this either. And yes, you need to write your own custom control and deal with alll the painting and handling of the keyboard to make the menu behave like a standard menu. If you have the time the it is a good learning excercise. If you don't you can always check the SharpLibrary popup menu control which does offer that feature. Regards, Carlos http://www.sharplibrary.com

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              Hey Carlos You still hang around here, eh? ;-) Nish :-D


              Extending MFC Applications with the .NET Framework [NW] (coming soon...) Summer Love and Some more Cricket [NW] (My first novel) Shog's review of SLASMC [NW] Come with me if you want to live

              C 1 Reply Last reply
              0
              • N Nish Nishant

                Hey Carlos You still hang around here, eh? ;-) Nish :-D


                Extending MFC Applications with the .NET Framework [NW] (coming soon...) Summer Love and Some more Cricket [NW] (My first novel) Shog's review of SLASMC [NW] Come with me if you want to live

                C Offline
                C Offline
                Carlos H Perez
                wrote on last edited by
                #7

                Hey Nish, Sure, I love CodeProject. I just did not appreciate the geeks fighting me over my own code. Regards, Carlos.

                N J 2 Replies Last reply
                0
                • C Carlos H Perez

                  Hey Nish, Sure, I love CodeProject. I just did not appreciate the geeks fighting me over my own code. Regards, Carlos.

                  N Offline
                  N Offline
                  Nish Nishant
                  wrote on last edited by
                  #8

                  Carlos H. Perez wrote: Sure, I love CodeProject Good to hear that Carlos :-) Anyway forget the past incidents. After all we are all coders in here, eh? Regards Nish p.s. Good luck with your commercial venture. Hope you are doing well there.


                  Extending MFC Applications with the .NET Framework [NW] (coming soon...) Summer Love and Some more Cricket [NW] (My first novel) Shog's review of SLASMC [NW] Come with me if you want to live

                  1 Reply Last reply
                  0
                  • C Carlos H Perez

                    Hey Nish, Sure, I love CodeProject. I just did not appreciate the geeks fighting me over my own code. Regards, Carlos.

                    J Offline
                    J Offline
                    J Dunlap
                    wrote on last edited by
                    #9

                    To me, it's just a matter of having an implied license. Basically, you thought the license was one thing, we thought it was another, and it happens we were correct. But the best thing to do is to have the license be stated beforehand, which is what Chris is working on doing for future CP articles/code. Good luck with your commercial product!

                    "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
                    "You must be the change you wish to see in the world." - Mahatma Gandhi

                    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