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

Add RadWaitingBar to RadStatusStrip Q3 2009

3 Answers 55 Views
StatusStrip
This is a migrated thread and some comments may be shown as answers.
Dieter
Top achievements
Rank 1
Dieter asked on 06 Jan 2011, 10:28 AM
Hi,
I am using a trail version.

I try to add a WaitingBar to a StatusStrip. I use following code to archive this :

            waitingBar = new RadWaitingBar();
            waitingBar.BeginInit();
            Size waitingBarSize = new Size(this.radLabelElement2.Size.Width, this.radLabelElement2.Size.Height);
            waitingBar.MinimumSize = waitingBarSize;
            waitingBar.MaximumSize = waitingBarSize;
            waitingBar.EndInit();
            host = new RadHostItem(waitingBar);
            this.radLabelElement2.Margin = new Padding(0);
            this.radLabelElement2.Children.Add(host);

I just add a radLabel to the StatusStrip named radLabelElement2 and it worked but the appearence look a little bit strange :

http://h-4.abload.de/img/unbenannt1oi3.png

I use the Desert Theme but the WaitingBar got a white border. I want is transparant. How can I archive this ?

Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 06 Jan 2011, 12:29 PM

Hello,

the following seems to help, though I can still see a tiny area of white space. Please can you try this

radLabelElement2.BackColor = Color.Transparent 
waitingBar.RootElement.BackColor = Color.Transparent

You could also change the theme of the actual waiting bar too, back to the Default theme which doesn't show any whitespace
Hope that helps
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 07 Jan 2011, 01:16 PM
Hello,

How did this go? If it helped, please remember to mark as answer. If you need more assistance, please let me know
thanks
Richard
0
Dieter
Top achievements
Rank 1
answered on 10 Jan 2011, 10:15 AM
Thanks! This really worked out for me :)
Tags
StatusStrip
Asked by
Dieter
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Dieter
Top achievements
Rank 1
Share this question
or