StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


12»»

Enable/Disable Controls...Expand / Collapse
Author
Message
Posted 05/09/2006 1:33:53 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
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.
Post #1169
Posted 05/09/2006 1:56:43 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
The controls are disabled because the business object control's their editable state.  This functionality works on other forms as well, as long as the controls are bound to the business object.  So, bind the controls you want to disable to the business object, and when you make your selection within the first combo box, call Edit() on the business object, which will enable the controls. 

FYI, if you ever need to disable that functionality, you can set the IgnoreManageUIReadOnlyState property to True on the control(s) you want to ignore the business object.  You can also set the property on the business object itself, which will cause the business object to quit managing all of its bound controls.


www.bungie.net
Post #1175
Posted 05/17/2006 11:21:08 PM


StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 10/17/2008 1:02:11 PM
Posts: 87, Visits: 779
IgnoreManageUIReadOnlyState, this is great cause I have a list box on a form, and since it's disable, I cannot scrool down, until i hit the edit button.... Now it will works.. thanks....
Post #1237
Posted 05/18/2006 8:40:02 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
No problem Ricardo.  That property is very useful, but many people don't know it's there.


www.bungie.net
Post #1239
Posted 05/24/2006 10:52:46 PM


StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 10/17/2008 1:02:11 PM
Posts: 87, Visits: 779
Yeah, but now they can be aware... nice forum...
Post #1272
Posted 08/30/2006 7:10:11 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
I have a DevExpress calc edit control bound to the BO and it doesnt appear that the BO is managing the calc edit's editable state. Any ideas?
Post #2549
Posted 08/30/2006 6:53:08 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
I just tested an inherited CalcEdit control bound to a business object and it was disabled and endabled properly... you might check both the control and the business object to make sure the IgnoreManageUIReadOnly state property and the ManageUIReadOnlyState property are False and True respectively.


www.bungie.net
Post #2565
Posted 08/31/2006 7:24:27 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
I just tested an inherited CalcEdit control bound to a business object and it was disabled and endabled properly... you might check both the control and the business object to make sure the IgnoreManageUIReadOnly state property and the ManageUIReadOnlyState property are False and True respectively.

I checked the BO and the ManageUIReadOnlyState property was set to True. I checked the CalcEdit control and couldn't find the IgnoreManageUIReadOnly state property. What do you mean inherited?

Post #2581
Posted 08/31/2006 10:13:39 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 3:20:54 PM
Posts: 4,769, Visits: 4,731
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.

Post #2588