StrataFrame Forum

Diabled Controls, Hard To Read

http://forum.strataframe.net/Topic712.aspx

By Robert Linton - 3/23/2006

When a BO is not in edit mode, all the controls are disabled. I've got a few users who are visually impaired, and I think these controls are going to be difficult for them to read.

Is there a way I can globally control the color of disabled controls? I've called BO.Edit() after navigation but, as expected, it sets the BO into Edit mode (which makes it easy to read) but the user will have to save (even though no changes are made) before they can continue navigating.

Any ideas how I might handle this?

TIA,

Rob

By Trent L. Taylor - 3/23/2006

The colors that you see are the default disabled colors supported by native .NET controls.  We have taken measures to actually make it easier to ready than it used to be.  There are several options here.  All business objects have a property called ManageUIReadOnlyState which will determine if the BO will even attempt to manage the enabled/disabled state of a control (True by default).  Also, all controls have a a property called IgnoreManageReadonlyState which when set to True, will leave the control out of the management list of the BO when changing the states.

On either of these options, you can manage the color of the control yourself.  Here is the problem, Textboxes have a ReadOnly property that works pretty well as a disabled state.  However, it is the only native .NET control that has this functionality.  Another issue is that none of the controls have any disabled settings, .NET just does what it likes in this case.  So overall the options are limited.

This one of the reasons we are creating our own basic controls to add to a new collection.  One option that you have at present is to purchase DevExpress controls and incorporate them.  We will have a wrapper available for DevExpress in the next few weeks which will allow direct data binding just like the StrataFrame controls.  These controls support disabled colors to be modified.

As for the new StrataFrame control collection, it will be a while before we make these available, but there are some options in the mean time.

By Robert Linton - 3/24/2006

Hi Trent,

Setting ManageUIReadOnlyState to false does exactly what I need.

>>We will have a wrapper available for DevExpress in the next few weeks which will allow direct data binding just like the StrataFrame controls.

I use DevExpress extensively and look forward to the wrapper. On that subject: I have found a problem while using their LayoutControl (ver. 6.1.2.) with SF that you may want to look into: You can reproduce a fatal error by dragging a SF Textbox into the LayoutControl and setting the "Multiline" property on your control to true. I've tested it with both the Standard Textbox control that you inherit from and it works correctly.

Thanks,

Rob

By Trent L. Taylor - 3/24/2006

Thanks for the heads up. Smile
By Jerry Carter - 4/19/2006

I just purchased your framework over the weekend and really love your approach. I have put together a few demos to show my staff and there number one complaint was that the controls are hard to read. I really don't want to loose the managed read-only state so I'm very interested in the DevExpress controls that you mention in this thread. Is the wrapper available yet?
By Trent L. Taylor - 4/20/2006

Just nearly.  We will make the wrapper available within the next 7-10 days from the downloads area of the website.  Smile
By Kari Paukku - 4/21/2006

Hi Trent,

would it be possible to get a example how to use e.g. the DevExpress-control, if you have that one ready. If not, a textbox-control would be ok as well. That way we could have a taste of things to come...

Cheers,

Kari

ps. For me a VB.Net sample would be preferred...

By Trent L. Taylor - 4/21/2006

It's hard to give you just one control because they are all in a single DLL.  If you would like I can post the code behind the inherited textbox so you can add it yourself for the DevExpress TextEdit control.
By Kari Paukku - 4/21/2006

Hi Trent,

no need, I wait....

Cheers,

Kari

By Trent L. Taylor - 4/21/2006

We'll have the wrapper ready very soon.  Hopefully next week we can make what we have available. Wink
By rmoore - 6/25/2007

Hi,



I'm using v6.3 of the DevExpress wrapped controls. Is there anyway to preserve the readonly state of the controls only changing the background color using this version? Iv'e messed around with the IgnoreMangeReadOnlyState of the control, ManageUIReadOnlyState property of the BO and the AppearanceDisabled backcolor of the control. It seems as though if I want to change the appeance of a disabled control, I have let the BO be in an "always on" editing state.



Thanks
By rmoore - 6/25/2007

I figured it out. In the Properties of the control I set the backcolor to white and leave the Readonly mangagers to there default state. It gives me what I need.
By Trent L. Taylor - 6/25/2007

Glad you got it going Smile
By Larry Caylor - 2/2/2008

One of the things I like about the Infragictics controls is that unlike the standard MS controls many have a ReadOnly property that allows you to effictively disable the control and still be able to see it clearly. I'm not sure how other SF/Infragistics users feel but I'd like to see tthe Infragistics wrapper use the ReadOnly property where available insted on Enabled to support ManagedReadOnlyState. 
By Trent L. Taylor - 2/5/2008

but I'd like to see tthe Infragistics wrapper use the ReadOnly property where available insted on Enabled to support ManagedReadOnlyState. 

I agree, this would probably have to be a shared global option so as not to change any existing behavior on the field.  But I agree that this would be better.