473,583 Members | 3,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ


How to put an icon beside a text in popupmenu?

Feb 9 '06 #1
1 1953

You will have to custom draw the menu item. Set the OwnerDraw property
to true on the MenuItem, and then subscribe to the MeasureItem and DrawItem
events to provide the size and the contents for the menu.

Hope this helps.

- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Hrvoje Voda" <hr*********@lu atech.com> wrote in message
news:ds******** **@ss405.t-com.hr...
How to put an icon beside a text in popupmenu?


Feb 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Aaron | last post by:
I'm having problems getting my popup menu to work correctly, and was hoping someone here could point me in the right direction. I have the following script: <script> var activeMenu=""; function getObject(id) { var object=eval("document.getElementById('"+id+"')"); return object;
by: EMW | last post by:
I use the following code in the POPUP event of a contextmenu: mnuItem = New MenuItem mnuItem.Text = "Shelter" cmThs.MenuItems.Add(mnuItem) AddHandler mnuItem.Click, AddressOf MenuItemClicked mnuItem = New MenuItem mnuItem.Text = "Building" cmThs.MenuItems.Add(mnuItem) AddHandler mnuItem.Click, AddressOf MenuItemClicked
by: Dennis | last post by:
A dumb question but what is the difference between the two properties; ContextMenu and PopMenu? -- Dennis in Houston
by: windows_mss | last post by:
When I Select Source & Destination Dynamically, Path Getting Scatter Across The Map... hi, i can able to get the Correct Route and Path for the corresponding Source and destination, like this, map.GetRoute('Redmond, Washington, United States','seattle, Washington, United States',VEDistanceUnit.KiloMeter,VERouteType.Shortest);
by: palani ganesh | last post by:
hi all, i m ganesh a newbie to this site........ In my program i want to insert, delete items in the listcontrol using the popmenu.....Is ther anyone to help me out???? awaiting for ur reply... thanks in advance with regards ganesh
by: bruce628 | last post by:
I want to use SWT Label and popmenu to construct a menubar ,and the effect of this menubar is same to the menubar in SWT.When click the Label,it should be highlighted and popmenu shows.The issue is when click the label and move the mouse to enter next label,the next label can not be highlighted.Can anyone have a solution for it? Here is my code:...
by: analfabete | last post by:
I do a program with a Bitmap Button and i want when i click on my button open a popupmenu. However when i click on my button my program.pyw stop (bug). Can you tell me why please: My program: import wx import wx.lib.buttons as buttons class FenetrePrincipal(wx.Frame): def __init__(self, parent, ID, title): ...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.