Context Menus will text box
-
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
-
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
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
-
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
-
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 -
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 -
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
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
-
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
Hey Nish, Sure, I love CodeProject. I just did not appreciate the geeks fighting me over my own code. Regards, Carlos.
-
Hey Nish, Sure, I love CodeProject. I just did not appreciate the geeks fighting me over my own code. Regards, Carlos.
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
-
Hey Nish, Sure, I love CodeProject. I just did not appreciate the geeks fighting me over my own code. Regards, Carlos.
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