Is is possible to change the setting of the ContextMenu?
-
Hello everyone, I have a ContextMenu in my Windows Application and I am trying to change it's property but I am unable to do so. For some reason when I change the size of the "Seperator" it goes back to what it was before!!! Can someone tell me what is going on here and how I can change the size of seperators in my ContextMenu. Thank you very much and have a great day Khoramdin
-
Hello everyone, I have a ContextMenu in my Windows Application and I am trying to change it's property but I am unable to do so. For some reason when I change the size of the "Seperator" it goes back to what it was before!!! Can someone tell me what is going on here and how I can change the size of seperators in my ContextMenu. Thank you very much and have a great day Khoramdin
Hi, you should be able to draw a menu item yourself, by setting OwnerDraw true, and providing MeasureItem and DrawItem event handlers. :)
Luc Pattyn [My Articles]
-
Hello everyone, I have a ContextMenu in my Windows Application and I am trying to change it's property but I am unable to do so. For some reason when I change the size of the "Seperator" it goes back to what it was before!!! Can someone tell me what is going on here and how I can change the size of seperators in my ContextMenu. Thank you very much and have a great day Khoramdin
-
Hello Maryamf, Thanx for the reply. That is what I thought initially and believe me when I tell you that I tried it. for some reason the Hight works fine but Width setting is not working. It is fix to what it was picked initially by the Contoller. All I wish to do is to reduce the width of the "Seperator" and align in to the left. Just the way the ContextMenu in Visual Studio is! Thank you for your help, mate. Khoramdin -- modified at 13:23 Sunday 15th April, 2007
-
Hi, you should be able to draw a menu item yourself, by setting OwnerDraw true, and providing MeasureItem and DrawItem event handlers. :)
Luc Pattyn [My Articles]
Hello Luc, Thanx for the help. If I am not mistaken base on your suggestion I can customize the entire ContextMenu. That is something which I might consider if there is no other way to get what I am looking for. The problem is what I am looking for is very simple. I wish to reduce the width of the seperator in the ContextMenu as it overlaps the image that I have placed on the left hand side of the ContextMenu. Thanx for your help, mate. Khoramdin