I use DEFINE WINDOW and MODIFY COMMAND to create an Editing window for VFP code, for on the fly changes while running a VFP app. The code resides in a Memo field, but MODIFY MEMO does not invoke the VFP Code Editor with all the bells and whistles. Here is the code for the process:
I would like to bind an event to the window "xCode" which comes up and I do not know how to get the hWnd value of the window needed for the BINDEVENT() function.
Any ideas would be appreciated...
Dennis Kean
Simplicity is the extreme degree of sophistication.
Leonardo da Vinci
Code:
SELECT COMMANDS
[b]DEFINE WINDOW[/b] xCode IN DESKTOP FROM 10, 10 TO 40, 200 TITLE "EDIT TEXT" FLOAT GROW ZOOM CLOSE NAME xEDITOR FONT "Inconsolata", 12
[b]MODIFY COMMAND[/b] ".\Concept_Projects\Temp.txt" WINDOW xCode NOWAIT
I would like to bind an event to the window "xCode" which comes up and I do not know how to get the hWnd value of the window needed for the BINDEVENT() function.
Code:
BINDEVENT([b]hWnd[/b] | 0, nMessage, oEventHandler, cDelegate [, nFlags])
Any ideas would be appreciated...
Dennis Kean
Simplicity is the extreme degree of sophistication.
Leonardo da Vinci