Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text of diary can't be coped/pasted in some computers?

Status
Not open for further replies.

pxw

Programmer
Jan 6, 2002
86
AU
Hi,
Can someone tell me why the texts of diary can't be coped/pasted in some computers by using Window's default hop keys, Ctrl+C and Ctrl+V? The texts can be high lighted. However, they will be deleted if the users use the keys of Ctrl+C and Ctrl+V. Note that there are no troubles at all to cope and paste using the same hop kays in some computer. I am using VFP6. The operating systems are Windows 2000. The code I used is "Activate window Calendar".

Any help would be appreciated.



Peter



 
You need to have the system _mEdit menu available in order for Cut and Paste to work at all.
 
is this an app or exe? what commands are you using on the menu system? Attitude is Everything
 
danceman, it is an exe. following codes are used to start a menu in my main.prg,

v_level=0
do CHECKLEVEL &&check password level and return v_level
if v_level<3
do memu1.mpr &&the menu for other users
else
DO menu2.mpr &&the menu for team leaders
endif

Note that &quot;Activate window Calendar&quot; is placed in the clcik event of a command button in a form.

wgcs, the diary works properly following your suggetion. The code I used is &quot;set sysmenu to _mEdit&quot;. However, my problem now is how to restore the previouse menu, nemu1 or menu2, after the diary is closed.

Is there any way to detect an activing menu?



Peter


 
pxw

According to the help this might help you:
Saving and Restoring Menus
You can save and restore menus on the stack with the PUSH MENU and POP MENU commands. Pushing and popping is useful when you want to remove a menu temporarily, replace it with another, and then restore the original later on.

The number of menus you save in memory is limited only by the amount of available memory.

Tip Check the available memory with the SYS(1016) function. For example, to check how much memory your menu system uses, call SYS(1016), push the menu on the stack, and then call SYS(1016) again.

And this:
You can manipulate menus that use the Visual FoxPro menu system by using the SET SYSMENU command. With SET SYSMENU, you can disable your menus, add and remove items from your menus, restore the default Visual FoxPro menus, and control access to your menus during program execution.


Mike Gagnon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top