Sample ToolBar1 with error?

Post Reply
User avatar
Anderson.OL
Posts: 92
Joined: Thu Feb 15, 2007 11:37 am
Location: Itaocara - RJ - Brasil
Contact:

Sample ToolBar1 with error?

Post by Anderson.OL »

Testing the example samples\toolbar1.prg noticed that the combination of keys ALT + N doesn't execute the function, just set focus for the button. Is this right?

Sorry for English.
FiveWin 9.03 + xHarbour !!
User avatar
Anderson.OL
Posts: 92
Joined: Thu Feb 15, 2007 11:37 am
Location: Itaocara - RJ - Brasil
Contact:

Post by Anderson.OL »

up
FiveWin 9.03 + xHarbour !!
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

We are checking it, and it looks as the button just gets the focus but the action is not fired.

WM_COMMAND is not sent and neither WM_SYSCOMMAND...

Still looking for a solution
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Anderson.OL
Posts: 92
Joined: Thu Feb 15, 2007 11:37 am
Location: Itaocara - RJ - Brasil
Contact:

Post by Anderson.OL »

Antonio Linares wrote:We are checking it, and it looks as the button just gets the focus but the action is not fired.

WM_COMMAND is not sent and neither WM_SYSCOMMAND...

Still looking for a solution

Thanks for reply
FiveWin 9.03 + xHarbour !!
User avatar
Anderson.OL
Posts: 92
Joined: Thu Feb 15, 2007 11:37 am
Location: Itaocara - RJ - Brasil
Contact:

Post by Anderson.OL »

remember this, please.
FiveWin 9.03 + xHarbour !!
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Why not just put the accelerator keys on the menu? These keys will work just the same as doing it on a toolbar.

James
User avatar
Anderson.OL
Posts: 92
Joined: Thu Feb 15, 2007 11:37 am
Location: Itaocara - RJ - Brasil
Contact:

Post by Anderson.OL »

James Bott wrote:Why not just put the accelerator keys on the menu? These keys will work just the same as doing it on a toolbar.

James
Work, but not in dialog with menu!
FiveWin 9.03 + xHarbour !!
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Ah, the toolbar accellerators also may not be working because the toolbar is on a dialog.

Here is a trick you can try. Put another button on the dialog with an accelerator then hide the button in your code. The accelerator will still work and it will seem like the toolbar accelerator is working.

James
aormond
Posts: 4
Joined: Fri Feb 08, 2008 3:29 pm
Location: Rio de Janeiro, Brasil

Post by aormond »

James Bott wrote:Ah, the toolbar accellerators also may not be working because the toolbar is on a dialog.

Here is a trick you can try. Put another button on the dialog with an accelerator then hide the button in your code. The accelerator will still work and it will seem like the toolbar accelerator is working.

James
Thanks, I need very much, I have to do the test

Excuse for my English
Post Reply