\r\n\r\n
Windows Forms Topics include: windows forms, controls, components and designers

Go Back  Xtreme .NET Talk > .NET > Windows Forms > Changing Toolbar Buttons


\r\n \r\n \r\n \r\n
 
 
Thread Tools Display Modes
\r\n \r\n
\r\n
\r\n \r\n How do you create a toolbar with buttons that change image as you roll over them with the mouse? For example, the IE5 interface has black & white buttons on the toolbar, but when you roll over them individually, they show in color. The standard .NET toolbar only lets you specify a single image list. It does not let you specify separate image lists for enabled/disabled/mouseover button conditions. Furthermore, I can\'t seem to access any events (such as mouse enter or mouse hover) for the individual buttons in the toolbar.
\r\n
\r\nThanks,
\r\nKenbuddy\r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; pd[168253] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n\r\n
\r\n
\r\n  \r\n #2  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 07-26-2002, 11:25 PM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Kenbuddy\r\n Kenbuddy is offline\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n \r\n I don\'t think that will be possible, per se. Not with the standard toolbar control. You could subclass it and get the coordinates of the mouse over the control when it is moved, but you\'d still have to map that to the buttons somehow.
\r\n
\r\nYou\'re probably better off searching for somebody elses toolbar component which supports this functionality, or writing your own.\r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n
\r\n __________________
\r\n MVP, Visual Developer - .NET
\r\n
\r\nNow you see why evil will always triumph - because good is dumb.
\r\n
\r\nMy free .NET Windows Forms Controls and Articles
\r\n
\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n'; pd[172943] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n
\r\n
\r\n  \r\n #4  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 08-04-2002, 05:28 PM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Kenbuddy\r\n Kenbuddy is offline\r\n\r\n\r\n
Prev Previous Post   Next Post Next
  #1  
Old 07-23-2002, 02:03 AM
Kenbuddy Kenbuddy is offline
Newcomer
 
Join Date: Jul 2002
Location: Cypress, TX
Posts: 13
Kenbuddy is on a distinguished road
Question Changing Toolbar Buttons

How do you create a toolbar with buttons that change image as you roll over them with the mouse? For example, the IE5 interface has black & white buttons on the toolbar, but when you roll over them individually, they show in color. The standard .NET toolbar only lets you specify a single image list. It does not let you specify separate image lists for enabled/disabled/mouseover button conditions. Furthermore, I can't seem to access any events (such as mouse enter or mouse hover) for the individual buttons in the toolbar.

Thanks,
Kenbuddy
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Invisible Toolbar Buttons DGS Windows Forms 10 02-04-2005 04:50 PM
Greying out toolbar buttons Jay1b General 2 09-18-2003 12:01 PM
Toolbar buttons jimday1982 Windows Forms 12 08-06-2003 08:57 PM
Toolbar buttons vnarod Windows Forms 2 04-07-2003 10:07 AM
Toolbar buttons and title labels DiverDan Windows Forms 6 03-19-2003 01:35 AM

Advertisement:

Powered by liquidweb