This is a migrated thread and some comments may be shown as answers.

Mouse hover issue in child forms

1 Answer 231 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Tahir
Top achievements
Rank 1
Tahir asked on 16 Aug 2012, 09:00 AM
Hi,

I have used CommandBar in my C# project to create a tool bar. Tool bar is created in a base class that is extended by several child classes. Child classes are expected to show/hide and/or enable/disable CommandBarButtons in the tool bar that's why the tool bar buttons are declared protected. When making a CommandBarButton object 'protected' it is not showing mouse hover effect on child form. I was able to reproduce the issue in a sample project but unable to attached the project here.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 21 Aug 2012, 06:52 AM
Hi Tahir,

Thank you for writing.

I managed to reproduce the issue according to your description. When the buttons in RadCommandBar are protected and the form is inherited in the child form all buttons settings are serialized, thus the buttons have those settings as local settings causing them to loose their theme settings. I am logging this issue in our Public Issue Tracking System and we will address it in a future release. Feel free to add your vote for the issue here: http://www.telerik.com/support/pits.aspx#/public/winforms/12362

The work around is to make the command bar protected and make the buttons private again. Then expose the buttons as properties of the main form so you can access them from the child forms. Unfortunately, you will not be able to work with them in design time of the child forms.

Your Telerik Points have been updated for this report.

Please note, that forum threads allow only images to be attached (gif, jpg, jpeg, png). If you need to attach other files, feel free to open a support ticket where zip files are allowed.

I hope that you find this information useful.
 
All the best,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
CommandBar
Asked by
Tahir
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or