Welcome Guest Search | Active Topics | Sign In | Register

BackShadeColor and BackShadeOpacity don't do anything? Options
Alistair Gillanders
Posted: Friday, July 22, 2011 9:12:54 AM
Rank: Member
Groups: Member

Joined: 9/23/2010
Posts: 15
I have a dailog box control set to modal display and it does not seem to matter what values I set for these properties I cannot get the documented backshade effect to appear having tested in IE, Firefox, Opera and Safari.

Also the documentation on BackShadeOpacity is singularly lacking in information with the standard EO help system failng of not providing any indication of reasonable bounds for the value. The default value appears to be 5, on most things with opacity it is a %age so I've tried 50 (mongst other values).

Suggestions welcome.

Alistair
eo_support
Posted: Friday, July 22, 2011 9:21:59 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We verified with this sample and it works fine:

http://demo.essentialobjects.com/Demos/Dialog/Features/Back%20Shade%20for%20Modal%20Dialog/Demo.aspx

So you may want to compare your code with the sample code and see if you have set both correctly. You may also want to try commenting out other contents/code in your page block by block to see if it has anything to do with those. It is not uncommon that invalid HTML (for example, unclosed elements) or logic errors in the code that would trigger "strange" problems.

I believe BackShadeOpacity is a percentage value, with 100 being completely opaque.

Thanks!
Alistair Gillanders
Posted: Friday, July 22, 2011 1:21:55 PM
Rank: Member
Groups: Member

Joined: 9/23/2010
Posts: 15
Hmm

OK digging deeper I find the plot thickens a little...that's normal!:-)

1. I confirm the dialog demo works here too.
2. I've realized that in this application we actually used the MsgBox control
3. The MsgBox control is clearly inheriting most of it's properties from the dialog control so it should still work and it doesn't.

When I set these inherited properties on the MsgBox to the same values as when used on a Dialog I am NOT seeing the inherited behavior. It seems to be a problem with the inheritance. Either the MsgBox control should wrap, not be derived from, the dialog so yo can hide non-implemented properties or there is something wrong with the overloading in the derived class that means the base functionality is broken.

I find this interesting as we have further wrapped the MsgBox class into a User Control to make it dramatically easier to use. I am finding this to be a feature of EO controls...often flexible to the point of obscuring key functionality and with a lot of not very useful documentation (e.g. you are correct that the BackShadeOpacity is a percentage...I tested it...it might be good to mention that in the documentation?)

So, is the MsgBox - Dialog inheritence broken in some way (or simply not imlemented)? Is there is some way to get these inherited properties working? Alternatively could you make sure that the properties advertised for a derived class are actually implemented...or somehow make it clear which simply do not work?

Thanks

Alistair
Alistair Gillanders
Posted: Friday, July 22, 2011 1:45:10 PM
Rank: Member
Groups: Member

Joined: 9/23/2010
Posts: 15
Forget it...I found it. It was buried in the user control code which was setting it to non-modal incorrectly when it is not supposed to work...fix that and it is working as advertised. C'est la vie!

Thanks for the quick response.

Alistair


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.