Hello all,
I'm using a MS Rich Textbox Control 6.0 and trying to handle the exiting from a subwindow with keypress event. All is ok (i detect the esc key and that) but when the subwindow is closed, the parent window turn crazy constantly detecting a event termination (96) and window get freezed.
I try two things:
*
Ef-Rtf-Ev-KeyPress.
call "C$GETEVENTDATA" using EVENT-CONTROL-HANDLE, 5aux
end-call
cancel "C$GETEVENTDATA"
if 5aux = Tec-Exit
destroy Screen1-Handle
perform Acu-Exit-Rtn
end-if
.
In this case, the runtime ends beacuse the program reachs stop run line in the acubench generated prodecure acu-exit-rtn that normally don't get executed, but in this case yes:
Acu-Exit-Rtn.
PERFORM Acu-Close-Files
PERFORM After-Program
EXIT PROGRAM
STOP RUN
.
When i do this:
*
Ef-Rtf-Ev-KeyPress.
call "C$GETEVENTDATA" using EVENT-CONTROL-HANDLE, 5aux
end-call
cancel "C$GETEVENTDATA"
if 5aux = Tec-Exit
destroy Screen1-Handle
exit program
end-if
.
The parent program get freezed like i say in the beginning.
¿Any tips? I'm using Acubench 8.2 with the screen designer.