cancel
Showing results for 
Search instead for 
Did you mean: 

Ctrl-A

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

I tried that but maybe I need to look up the inheritance chain farther.  Let me try...

Former Member
0 Kudos

The window in question doesn't have any menu associated with it and is a response window.  The datawindow is inherited from u_dw but the m_dw menu has no shortcut key set.

Is there any other way that PFC or PB captures keystrokes?

I've looked at pfc_u_dw and don't see any keystroke capturing.

arnd_schmidt
Active Contributor
0 Kudos

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&amp';s PowerBuilder Notes

hth

Arnd

Former Member
0 Kudos

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

Former Member
0 Kudos

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