Windows_Override_State - DfComUIObject
Allows DataFlex to stop the default windows behavior for mouse and keyboard messages
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean Windows_Override_State
| Access Type | Syntax |
|---|---|
| Read Access: | Get Windows_Override_State to BooleanVariable |
| Write Access: | Set Windows_Override_State to BooleanVariable/Value |
Description
Windows_Override_State allows DataFlex to stop the default Microsoft Windows behavior for mouse and keyboard messages. When set to true, the standard Windows behavior is canceled and the developer may send DataFlex messages to handle the event. This stops the standard Windows behavior.
Default is False.
If your DataFlex program responds on a Windows message (mapped to a DataFlex procedure via External_Message) and you want to pass a value back to the program sending the message, you need to set this property to True.
Example
Procedure Construct_Object
Forward Send Construct_Object
...
Set External_Message WM_FOO To msg_Foo
...
End_Procedure // Construct_Object
Procedure Foo Integer wParam Integer lParam Returns Integer
...
Set Windows_Override_State To True
Procedure_Return 2 // The value to be returned
End_Procedure // Foo