Change the value
Posted: Thu Nov 19, 2020 2:54 pm
Hi.
There are 2 apps on FW. App1 and App2. App1 has a dialog box with the TGet control. I use a timer to check the TGet value for changes. I want to change the value of this TGet from App2.
hWn:=FindWindow( ,"The dialog title") //Handle of the dialog App1
hGt:=FindWindowEx( hWn, 0, "Edit" , nil ) //Handle of the TGet App1
SetWindowText(hGt, "2") //changing the TGet value
The GetWindowText(hGt) function determines that the TGet value has changed. However, checking in App1 doesn't see any changes. If I use TSay, then everything is fine. Why is this ?
There are 2 apps on FW. App1 and App2. App1 has a dialog box with the TGet control. I use a timer to check the TGet value for changes. I want to change the value of this TGet from App2.
hWn:=FindWindow( ,"The dialog title") //Handle of the dialog App1
hGt:=FindWindowEx( hWn, 0, "Edit" , nil ) //Handle of the TGet App1
SetWindowText(hGt, "2") //changing the TGet value
The GetWindowText(hGt) function determines that the TGet value has changed. However, checking in App1 doesn't see any changes. If I use TSay, then everything is fine. Why is this ?