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
All,
If you could offer your feedback it would be most beneficial as we look at ways of solving this scenario.
Kind Regards,
Andrew M. FlickProduct Manager, Infragistics
Just a Marquee mode like the MS control would be a good start.
uli said:Just a Marquee mode like the MS control would be a good start.
If that's all you need, why not simply use the MS control, then?
What is it you are looking for in an Infragistics marquee that the inbox one doesn't already do?
Hi MikeAre there any news about the Marquee Style on your ProgressBar ?Will this be implemented sometimes ?Thanks and best regardsFrank Uray
Hi Frank,
We decided to make this a separate control, rather than shoehorn it into the ProgressBar control.
The UltraActivityIndicator control was added to NetAdvantage over a year ago. :)
Hi MikeThank you for your answer :-)I was just playing arround now with this ActivityIndicator.It looks very nice, just one little thing I did not found:How can I add some Text to it ?Thanks and best regardsFrank Uray
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.
Chris
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).