Hello World!
I use UltraCalculator on my main form which happens to contain a wallpaper.
I also use some other Infragistics Ultra controls, like UltraGrid, UltraTextEditor and UltraTree.
All of these controls are using Transparent BackColor and AlphaLevel in Appearance when they are not focused.
Excpet UltraCalculator, these controls are behaving as they should, they are transparent and their transparency depends on AlphaLevel set, soo the wallpaper can be seen.
However, UltraCalculator has BLACK background.
I figured that it might have a container beneath that has it's own backround set as black.
How do I get around this (without making my own calculator instead)?
Hi,
If UltraCalculator is not supporting Transparency, you should Submit an incident to Infragistics Developer Support. This is probably a bug which needs to be addressed.
In the mean time, you can probably work around the issue like so:
this.ultraCalculator1.Appearance.ImageBackground = this.BackgroundImage; this.ultraCalculator1.Appearance.ImageBackgroundOrigin = Infragistics.Win.ImageBackgroundOrigin.Container; this.ultraCalculator1.Appearance.ImageBackgroundStyle = Infragistics.Win.ImageBackgroundStyle.Tiled;
Many thanks for help, but I've tried this and the image is little distorted, as if it took a part of backround image beneath and moved it cca one centimeter down and right. It seems it will have to do for now.
Also, I will make sure to report probable calculator transparency bug to the developer team. I hope it will bi fixed soon.
The image should line up correctly, assuming that the UltraCalculator control is directly on the form. I tried this out and it worked perfectly for me.
If there's another container in between, then it won't line up properly, because the Container will not be the control that actually has the image.
You're right, UltraCalculator control is not directly on the form, it's on one of containers in between. That's why I also had to use line "this.ultraCalculator1.Appearance.ImageBackground = this.Parent.BackgroundImage;" instead of line "... = this.BackgroundImage;".
Do You probably know any way of fixing this problem?
Many thanks for Your help!
No, there's no way to pick up the image of a grandparent, only the direct parent of the control. Did you submit an incident to Infragistics Developer Support as I suggested?
I have, Mr. Neeraj answered, and gave me a video and a solution. However, that solution also included these three lines of code You suggested, which doesn't suit for me. But I am impressed with your support and quick responses. :) I have replyed to him and I hope they will solve the problem...
It's a good idea to include a link to this forum post so that the developer support rep can see what we have already discussed. The fact that the control is not supporting transparency seems like an oversight to me, since all of the other editors support it.