StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Change control disabled state to readonly
Change control disabled state to readonly
Post Reply
Like
0
Change control disabled state to readonly
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
dgsoft
dgsoft
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 93,
Visits: 236
Hi,
The default behavior of controls when editable state of business object is false - controls are disabled.
When it so, I can't use shortcut menu to copy text values and so on. The question is :
Is there EASY WAY
to change controls behavior so controls instead disable set to readOnly.
Thank you
Denis
Reply
Like
0
Reply
Larry Caylor
Larry Caylor
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: Awaiting Activation
Posts: 592,
Visits: 3.7K
Many of the standard Windows controls (from which the SF controls are inherited) do not have a ReadOnly property. This is one of the reasons that I use a lot of the Infragistics controls since I feel it is easier to read controls that are in ReadOnly state than controls that are disabled. I have my own version of the SF Infragistics wrapper that uses ReadOnly in place of Enabled for those controls that support it. I also modified the wrapper to set the default IgnoreManagedReadOnlyState to False instead of True so that it matches the default of the standard SF controls (not sure why they are different
) Since the SF wrapper seldom changes and I tend to use the most recent version of the Infragistics controls, having to maintain and re-comple the code is not a problem for me. It would be nice if the standard SF Infragistics wrapper worked this way but changing it now would probably cause problems for other SF users.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Change control disabled state to readonly
dgsoft
-
15 Years Ago
Try subclassing and overriding the BindingEditable property. Inside...
Greg McGuffey
-
15 Years Ago
:) yes.. I see.. but subclassing I just don't call "easy way" to solve...
dgsoft
-
15 Years Ago
If you set the ManageUIReadonly state of the BO to false, the fields...
Trent L. Taylor
-
15 Years Ago
If you just want the controls to always be enabled, then Trent's...
Greg McGuffey
-
15 Years Ago
Many of the standard Windows controls (from which the SF controls are...
Larry Caylor
-
15 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search