on 2015 Oct 24 9:32 PM
Hi All,
I'm having trouble getting Ctrl-A to work as expected in my app. I am using using PFC and I've seen on line that it seems to be related, but after playing I still can't seem to get it to work.
The Select All from the RMB menu works but even when I set Ctrl-A as the shortcut key in the m_dw menu it still just make a bong sound when I try ti use it.
Any help would be greatly appreciated.
Thx,
Shawn
Request clarification before answering.
Hi Shawn;
Fyi ... If you have any menu item with a CTRL+A short-cut assigned to it, that menu item will steal the keyword message any from your Window and/or controls.
Just a guess. HTH
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can add a menu to the response window by calling the ChangeMenu() function in the open (pfc_preopen) event and make it invisible.
A description can be found here:
Menus Schultz&';s PowerBuilder Notes
hth
Arnd
Assuming the window is a sheet ultimately inherited from pfc_w_master then pfc_m_master.m_edit.m_selectall event does an of_SendMessage ("pfc_selectall") so if the focus is on a control inherited from pfc_u_dw you should get the pfc_selectall event triggered: return SelectText (1, 32767)...
that's the theory anyway
Hi Shawn;
In that case, you might want to also look for code attached to the "other" event in your Window or its controls, as well as ...
Window:
a) pbm_syscommand
b) pbm_keyup
c) pbm_keydown
etc
DataWindow:
a) EditChanged
b) pbm_dwnkey
c) pbm_keyup
d) pbm_keydown
etc
Maybe one of those are trapping the CTRL+A.
Regards ... Chris
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.