Re: Need help again for the clipboard.

From: (wrong string) é Dorta <"René>
Date: Thu, 07 Nov 2002 22:50:48 -0400

----boundary-LibPST-iamunique-329873513_-_-
Content-type: text/plain

To prevent the use of the Copy operation (Ctrl+C) if nothing is
selected, one must simply link the guard field of your Copy Command
(either in your interactor guard field or in your menu item guard field)
to HostCmds.CopyGuard. Such guard procedure is a general purpose guard
that disables any control linked to it if no selection exist. You don't
need to build another procedure for that purpose.

Guard procedures have a fix signature, you can't change it. They are
global procedures, they are not class methods.

Regards, René Dorta
Universidad de Carabobo. Valencia. Venezuela.
-------------------------------------------------------------

> HECTOR had written:

Hello, BlackBoxers.

Do you remember I wrote a few days ago asking for the implementation of
a clipboard?
... But now I have another question about the ClipBoard. What I want to
do now is
something like a Guard, to prevent that anybody could call to the "Paste

operation (Ctrl+V)" if the clipboard is empty, or also to prevent the
use of
the "Copy operation (Ctrl+C)" if nothing is selected. Looking trough the

BlackBox menus ans modules, I have found "HostCmds" module, that is the
module
used for the cut and copy operations in the Edit menu. I have seen in
the
interface of that HostCmds module many guards, like CopyGuard,
CutGuard... I
suposse that for making my own guards I should have to use these methods

(perhaps re-defining them?). Is that correct?.
...



--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-329873513_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwX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