Hi,
How can I display an animated image on UltraRibbon button.
Thanks
Sangeetha
Hi SangeethaThai,
It is no problem at all. If you have any other approaches in mind that I may be able to offer assistance for, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
Great. Thank You very much for your support.
You are certainly welcome. There are several articles that discuss creating a blinking effect with Windows Forms tools, a link to which I have provided below, for reference.
However, those that I have come across appear to have the general theme of either swapping between two contrasting images or abruptly modifying the visibility of the said control in order to achieve this behavior.
While these approaches will certainly work for creating a blinking appearance, I have taken this as an opportunity to personally construct a sample which focuses on the UltraToolBarsManager and its ButtonTool in order to provide further context for that control.
Also, in the approach I have implemented logic that you may find useful, wherein the tool smoothly transitions between a normal and transparent appearance with an adjustable frequency, to create a more professional presentation as opposed to abruptly shifting instantaneously between the two; although, the latter may definitely be achieved with this approach as well if that is what you are looking for.
Please find the sample attached.
MSDN forum, Creating a blinking effect with WinForms controlshttp://social.msdn.microsoft.com/Forums/is/winforms/thread/655c8e33-f2a0-4033-8873-0032ac757019
If you have any questions at all regarding this implementation or related approaches, please let me know.
Thanks for your reply Chris.
That seems like to much work for simple functionality. Instead how simple is creating a blinking effect. Something like a background color change using a timer giving a blink effect.
If you could guide me to some useful docs I would appreciate it.
Support for animated button images is not extended by the UltraToolBarsManager Ribbon; however, I believe that it should be possible to achieve the approximate appearance of animation with a custom, programmatic implementation.
It is certainly possible to assign discrete images to a ButtonTool; it should also be possible to store an array of images, each image representing a single frame in the animation and then cycling thru these images in sequence; perhaps synching the transition of each frame by referencing a timer, to give the appearance of an animated icon.
This process would need to be entirely orchestrated in code, but I believe it should definitely be possible.
If you are interested in this approach or if you have any further questions regarding this inquiry, please let me know and I will work on developing a sample to provide further context for this idea.