Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
ItemEnabled not working when set to False$
I have discovered that a disabled ShortCut item will still fire the OnClick event when you click on it. It does, however, correctly not respond to the mouse as it hovers over it and the item's label is grayed.
The ShortCut bar is on the Frame (Frameworks). I used the following code on a MDI Child create event:
When it's convenient, could someone please confirm this behavior?
Using SRP Controls Pro 3.1.0
Thanks.
The ShortCut bar is on the Frame (Frameworks). I used the following code on a MDI Child create event:
Frame = @APPINFO<13>
Set_Property(Frame:".SCB_SIDE", "OLE.ItemEnabled[2; 1]", False$)
When it's convenient, could someone please confirm this behavior?
Using SRP Controls Pro 3.1.0
Thanks.
Comments
You might ask, "Why would anyone want the click event to happen when an item is disabled?" Believe it or not, I've encountered a situation in which a client wanted to display a popup when a user clicked on a disabled control that explained why the control was disabled.
"The ItemEnabled property enables or disables an item. A disabled item will not fire the OnClick event when the user clicks on it."
Fixed.