Enable/Disable Controls...


Author
Message
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
I notice that on a Maintenance form when you place strataframe controls (TextBox, Combobox, etc.) on the maintenance form, they are all disabled by default, until the Edit button is pressed.



Is there a way I can leverage that same functionality on other forms? I have a form with a bunch of comboboxes and I would like all of the comboboxes to be disabled until a choice is made from the first one. Just wondering... if not i'll use a for each loop.
Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
He meant to say "used" not inherited.  I just tested this and it is working.  So you more than likely have the IgnoreManageReadonlyState property set to True and it needs to be set to False.  See the property sheet image below.


StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
What I meant by "inherited" is that I tested the MicroFour.StrataFrame.UI.Windows.Forms.DevEx.CalcEdit control... it is a control that inherits from the standard DevExpress CalcEdit control and implements the IgnoreManageUIReadOnly state property... so, if you don't have that property, then you most likely aren't using the inherited CalcEdit control, but the basic CalcEdit control, which doesn't support the management of the editing state by the business object.

So, just make sure you'e using the correct control.

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
If you don't see the CalcEdit control within the StrataFrame Inherited Controls toolbox tab (or you don't see the StrataFrame Inherited Controls toolbox tab at all), you can create or recreate the toolbox tab through the StrataFrame menu... the Create Toolbox Tab property will re-create both the StrataFrame Controls & Components tab and the StrataFrame Inherited Controls tab.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
StarkMike - 19 Years Ago
StrataFrame Team - 19 Years Ago
Ricardo Quartier - 19 Years Ago
StrataFrame Team - 19 Years Ago
Ricardo Quartier - 19 Years Ago
StarkMike - 19 Years Ago
StrataFrame Team - 19 Years Ago
StarkMike - 19 Years Ago
Trent L. Taylor - 19 Years Ago
                 What I meant by "inherited" is that I tested the...
StrataFrame Team - 19 Years Ago
StrataFrame Team - 19 Years Ago
StarkMike - 19 Years Ago
StarkMike - 19 Years Ago
Trent L. Taylor - 19 Years Ago
StarkMike - 19 Years Ago
Trent L. Taylor - 19 Years Ago
StarkMike - 19 Years Ago
Trent L. Taylor - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search