Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveBar not handling Edit functions
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00175277
Message ID:
00175788
Views:
77
Hi Rick,

Its the ActiveBar challenged guy again. I gave up on the menu idea as you suggested and now I'm trying the OKL approach, but no dice...yet. VFP seems to want the VFP edit bar up in order to do any edit functions. I tried with a very basic form and set the OKLs in the activate of the form like this:

on key label CTRL+R SYS(1500, '_MED_REDO', '_MEDIT')
on key label CTRL+Z SYS(1500, '_MED_UNDO', '_MEDIT')
on key label CTRL+C SYS(1500, '_MED_COPY', '_MEDIT')
on key label CTRL+X SYS(1500, '_MED_CUT', '_MEDIT')
on key label CTRL+V SYS(1500, '_MED_PASTE', '_MEDIT')

this is the test code I put in the click event of the activebar:
DO CASE
CASE TOOL.name = "miCopy"
WAIT WINDOW "copy" nowait
*!* SYS(1500, '_MED_COPY', '_MEDIT')
CASE TOOL.name = "miCut"
WAIT WINDOW "cut" nowait
*!* SYS(1500, '_MED_CUT', '_MEDIT')
CASE TOOL.name = "miPaste"
WAIT WINDOW "paste" nowait
*!* SYS(1500, '_MED_PASTE', '_MEDIT')
ENDCASE

I've tried this click event code W/ and W/O the now commented sys functions.


This "learning experience" is really turning out to be a real bummer, but I am determined to get this to work. If its not to much trouble, could you shoot me a sample of a working form so i can learn how you do this magic?

Sorry for being such a pest over this, and thanks again for all your help.

John.






>No, it doesn't <s>...
>
>
>HIDE MENU doesn't work. DEACTIVATE MENU does, but it's flaky (menus will pop up if you press ALT or F10 keys, they'll pop up after you activate a modal dialog).
>
>This has been driving me nuts... I finally gave up on using menus for duplicating the ABar menus becuse of this.
>
>THere are several ways to handle Activabar menus right. One I posted on teh ActiveBar newsgroup last week is to use OKL's to handle all the shortcuts. I created an object that wraps all the hotkeys and makes this relatively painless. The object activates/deactivates teh hotkeys in the form's activate/deactivate events.
>
>The other is to do key translations from VFP Form::Keypress. The VFP key codes aren't the same as VB keycodes and this is why you can't simply capture keystrokes and pass them forward. It works, but it still sucks because Form FormKeypress doesnt' capture all keys (Alt-keys in particular).
>
>
>This is supposed get fixed in ActiveBar 2.0...
>
>+++ Rick ---
>
>
>>Hi John,
>>
>>>Yes I can, but unless the VFP system menu, (or another menu with VFP edit bar) is active, the edit functions do not work from the ActiveBar.
>>
>>Have you tried
>>
>> HIDE MENU _MSYSMENU
>>
>>This make the menu invisible, but still lets the user access all of it function via the hotkey...
>>
>>Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform