Hello,
I'm trying to make the UltraProgressBar behave like a marquee normal WinForms ProgressBar, but cannot find this anywhere in the properties.
Can this be obtained, am I missing something?
Emanuel
Make sure that any long running processing is occurring on a background thread. If the processing occurs on the main UI thread, then the window will not process it's paint messages until after the processing occurs.
Let me know if this helps.
Chris
Why the UltraActivityIndicator isn't animating ?I did place this control on my form and I hide it by default and whenthe app do a long running process like populating a grid, I show the indicator but there's no animation at all. I've set the AnimationEnabled to true but no result.
2 thumbs up. With all the functionality of UltraProgressBar which the MS one isn't actually Ultra at all, having the Marquee functionality would be a great feature.
Thank you
Frank,
Another way to add text (without the use of a separate label) is to use a DrawFilter to add the desired text. Try the following DrawFilter:
public class ActivityIndicatorTextDrawFilter : Infragistics.Win.IUIElementDrawFilter { #region Members private string text; #endregion //Members #region Constructor public ActivityIndicatorTextDrawFilter(string text) { this.text = text; } #endregion //Constructor #region Text public string Text { get { return this.text; } set { this.text = value; } } #endregion //Text #region IUIElementDrawFilter Members public bool DrawElement(Infragistics.Win.DrawPhase drawPhase, ref Infragistics.Win.UIElementDrawParams drawParams) { if (drawParams.Element is Infragistics.Win.UltraActivityIndicator.MarqueeIndicatorUIElement && string.IsNullOrEmpty(this.Text) == false) { drawParams.AppearanceData.TextHAlign = Infragistics.Win.HAlign.Center; drawParams.AppearanceData.TextVAlign = Infragistics.Win.VAlign.Middle; drawParams.DrawString(drawParams.Element.RectInsideBorders, this.Text, false, false); } return false; } public Infragistics.Win.DrawPhase GetPhasesToFilter(ref Infragistics.Win.UIElementDrawParams drawParams) { if (drawParams.Element is Infragistics.Win.UltraActivityIndicator.MarqueeIndicatorUIElement) return Infragistics.Win.DrawPhase.AfterDrawElement; return Infragistics.Win.DrawPhase.None; } #endregion }
Let me know if you need further assistance.
Hi Frank,
I don't think it has any built-in support for text. It just runs a continuous animation. I think typically, you would use this control in conjunction with a label (or UltraLabel).