Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VfpTimePicker class
Message
From
04/01/2018 18:58:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01656967
Message ID:
01656974
Views:
45
Hi
2 solutions to change the olecontrol possibility to be enabled/disabled:

1.add just a commandbutton on the form to switch between 2 states:enabled/disabled
*in click event
with thisform.olecontrol1.object
.enabled=!.enabled
endwith
the key is "object" otherwise cannot change the dtPicker state.

2.can be also a checkbox with this code
*in interactiveChange() event
thisform.olecontrol1.object.enabled=iif(this.value=1,.t.,.f.)
the visual indication of a disabled control is that it is grayed and dont react to events (user or by code).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform