Douglas,,
At the moment I have the following as a signature in my Csv module
PROCEDURE SignatureGuard*(VAR par: Dialog.Par);
END SignatureGuard;
Does this look like a proper signature?
Things are still not working though. I think my menu is coming up in gray, so I am going to look into that.
Thanks again for your response. Not having been into guards, I searched for signature. The above is what I have come up with so far. If it isn't complete let me know.
Terry
--- On Wed, 4/13/11, Douglas G. Danforth <danforth{([at]})nowhere.xy
From: Douglas G. Danforth <danforth{([at]})nowhere.xy
Subject: Re: [BLACKBOX] SelectionGuard?
To: BLACKBOX{([at]})nowhere.xy
Date: Wednesday, April 13, 2011, 5:32 PM
Terry,
It must be a procedure that has a single argument of the form (VAR par: Dialog.Par).
If you have that then perhaps a posting of your (cut down) code for your procedure
would be useful for the rest of us.
-Doug
On 4/13/2011 4:54 PM, john McGiveran wrote:
Doug,
Thanks for your response. My AbleCsv.Convert does have an asterisk. What is the signature of a SelectionGuard?
Terry
--- On Wed, 4/13/11, Douglas G. Danforth <danforth{([at]})nowhere.xy
From: Douglas G. Danforth <danforth{([at]})nowhere.xy
Subject: Re: [BLACKBOX] SelectionGuard?
To: BLACKBOX{([at]})nowhere.xy
Date: Wednesday, April 13, 2011, 3:06 PM
PROCEDURE SelectionGuard (VAR par: Dialog.Par)
This guard disables the current menu item if the current focus is not a text view or doesn't contain a selection
Example:
PROCEDURE FindGuard (VAR par: Dialog.Par)
This guard disables the current menu item if the current focus is not a text view or if the find.find interactor holds an empty string, i.e., no search target is set.
Is your AbleCsv.Convert procedure exported and has the signature of a SelectionGuard?
-Doug Danforth
On 4/13/2011 2:34 PM, john McGiveran wrote:
I am attempting to use TextCmds.SelectionGuard for the first time and having no success. This is the first time I have put anything into the guard section of the menu listing. The log shows the following:
TextCmds.SelectionGuard for AbleCsv.Convert not found.
Something should be added and I don't know what it is, or where it should be put. I have been unable to find anything on this in the tutorials, although they do cover control Guards.
I would appreciate any advice on how to get on with this, or where to find such information. If I missed this in the tutorials just let me know. I am more than a little frustrated.
Thanks,
Terry McGiveran
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
Received on Thu Apr 14 2011 - 06:47:09 UTC