In your "copy" button, put this code (in the Click):
SYS(1500, "_MED_COPY", "_MEDIT")
Similarly for cut and paste.
The only trouble is that the button does not get automatically greyed out when there is no text to copy or to paste. I wish I could give you an easy solution to that. Maybe someone else can.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Tamar has given you the answer. I was assuming you had an Edit menu which already contained cut, copy and paste commands. If not, you'll need to create one in order for the toolbar buttons to work (but it doesn't have to be visible).
In any case, I'd recommend you include a standard Edit menu in your app (assuming you have menus). User who are familiar with other apps would expect it.
As for getting back issues of FPA, the article that Tamar mentioned will only help you solve the problem of enabling or disabling the toolbar buttons. It would be nice to do that, but I don't think it's essential.
(Not that I want to discourage anyone from getting FoxPro Advisor, either on CD or paper. It's definitely worth subscribing to, [but then I've got a slight vested interest in saying that].)
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.