Foen
March 7th, 2008, 07:18
Has anyone had much luck disabling a die control? I'd like to determine which dice appear in the control programmatically, rather than have the user fiddle with it.
I can prevent dice being dropped on the control by returning false from an onDrop handler, but the user can still right-click and bring up a 'clear dice' menu item.
The <disable/> switch doesn't seem to do anything, and readonly/static aren't applicable to diecontrols.
I could check for an change in the value, and reset it back to the calculated contents after a user tries to clear it, but this seems rather inelegant. :o
Cheers
Stuart
I can prevent dice being dropped on the control by returning false from an onDrop handler, but the user can still right-click and bring up a 'clear dice' menu item.
The <disable/> switch doesn't seem to do anything, and readonly/static aren't applicable to diecontrols.
I could check for an change in the value, and reset it back to the calculated contents after a user tries to clear it, but this seems rather inelegant. :o
Cheers
Stuart