We have a large PowerBuilder 2021 application with many DataWindows. I want to have Copy (Ctrl+C) and Paste (Ctrl+V) implemented globally throughout the application.
This does not seem to work out of the box and I think custom code may be required.
Are there any examples to how to implement something like this? We would want all text fields throughout the application to have this same functionality.
---
[edit]
So far I've tried to create a menu item in the application for "Ctrl+C" and "Ctrl+V" that is bound to those keys. Inside of the handler for those menu items I am trying to access the current control which has focus. I have tried to get the control with focus by using the below pieces of code, but both did not work.
"""
Control lw_control // Control is not a valid type
lw_control = GetFocus()
"""
and:
"""
Any lw_control
lw_control = Message.ObjectFocus // object focus doesn't exist on Message.
"""