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

A Suggestion for radLabels

5 Answers 42 Views
Forum suggestions
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 27 Nov 2011, 02:08 AM
Hi,
I am looking for 'real' background transparent labels.  

In the background of the label images change. Sometimes even movies. I would just like the text to superseed - so just the text, the alphabetical characters would overlay the movie.

Thanks,

 

5 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 30 Nov 2011, 08:55 AM
Hi Karl Golling,

Thank you for contacting us.

In the Windows Forms technology there is no real transparent background. Although you can set the BackColor to Transparent, this only paints the parent control background. A quick search on the internet shows that this is a common problem. This limitation comes from the fact that in the Windows Forms technology, each control is treated by the operating system as a separate window.

To achieve real transparency, you need to use custom painting. If your label's parent control is a RadControl, then you can take advantage of the Telerik Presentation Framework, over which our controls are built, and just add a RadLabelElement somewhere in the element tree. Please let me know if this is the case and I will assist you with achieving the desired behavior.

If this is not the case, then you will need to implement your own custom painting, which is not related to our suite. There are lots of resources on the internet which can help you with this, for example, this CodeProject article.

I hope this information is useful. Feel free to ask if you have any further questions.

Best wishes,
Ivan Todorov
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

0
Karl
Top achievements
Rank 1
answered on 30 Nov 2011, 09:55 AM
Hi Ivan,

Yes, I would very much appreciate support in this direction. The background is a radform and the labels I am using are radlabels. So if it is possible, I would jump into the sky.

One of the applications would be to steer subtitles in a movie. Currently I need to hard code the subtitles into the wmv or mp4 file.

Yes, I would appreciate handholding to do this.

Karl
0
Ivan Todorov
Telerik team
answered on 02 Dec 2011, 05:34 PM
Hi Karl Golling,

I am afraid that this could not be achieved using our RadControls. RadElements can only be inserted inside RadControls and currently we do not provide a control for playing movies. The fact that you are using a RadForm will not help in this case, because you need to be able to draw over the client area of your movie control (e.g. the movie control will hover the form and the labels). In your case, you would have to apply some custom painting to the movie component you are using, but as I mentioned in my previous post, this is not related to our suite.

Nevertheless, I have prepared a small sample project which demonstrates how you can insert RadLabelElement inside RadPanel. You might find it useful in some future cases.

If you have any additional questions, do not hesitate to ask.

Greetings,
Ivan Todorov
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

0
Karl
Top achievements
Rank 1
answered on 27 Dec 2011, 12:03 AM
Hi Ivan,

Getting back to this discussion of tranparancy of radlables. I have just used radDesktopAlert and it has the transparency feature (this.radDesktopAlert1.Opacity) I have been looking for and you can see movies running in the background through it. So it is technically already done!

Could you have this possible new feature for radLables put on the future wishlist for the developers to keep an eye on? It would also be nice to be able to fade radlabels in, like the radDesktopAlerts and of course also out. Why keep these wonderful control-features to just one control?

I would love to see these enhancements in Q1 2012!

Thanks

Karl
0
Ivan Petrov
Telerik team
answered on 29 Dec 2011, 03:06 PM
Hi Karl Gollin,

Thank you for writing back.

The transparency of RadDesktopAlert is available because the alert is painted in a Layered Window. If we are to make opacity available in all controls, we will have to paint them all in a separate layered window, which would be very slow. For your case you will either have to paint the text in your movie control client area or you can create a layered window on top of the movie control and paint the text in it. 

I hope this will clear things up. If you have other questions we would be glad to assist.
 
Kind regards,
Ivan Petrov
the Telerik teamQ3’11 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
Forum suggestions
Asked by
Karl
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Karl
Top achievements
Rank 1
Ivan Petrov
Telerik team
Share this question
or