Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link ABC: Conditionally use form or edit in place 1998-11-11 -- Jim Defabia Newsgroups: comp.lang.clarion
The ABC templates make this easy to do. I wrote an article for Clarion
Online (Jan 1996 vol. 1 # 6) detailing the steps to set this up.
If you are a subscriber, you may want to read this back issue. If not, here
is the short version of what you need to do:
First, look at what a Browse Procedure does when the user calls for an
update. It calls a method named something like BRW1.ThisWindow.Run. The
method takes a number as a parameter. This number is the value of the
BRW1.AskProcedure property.
In other words, if you enable Edit-In-Place _and_ specify an update
procedure, you have two-thirds of your work already done. Set the
BRW1.AskProcedure Property to 0 (zero) and you have Edit-in-Place; Set it to
1 (One) and you call your update procedure.
The steps:
1. Select the Browse procedure, and press the Properties button.
2. In the UpdateButton section of the Procedure Properties window, check the
Use Edit in Place box. Make sure an update procedure is specified.
3. Embed the code to set the default update action to call the form. In the
Window Manager Method – Init – BYTE() embed point embed the following code.
Leave the Priority set to Default (4000).
BRW1:AskProcedure = 1 ! note that a 1 calls the form--the
default action we want
4. Embed the code to set the action of a double-click to use edit-in-place.
In the Browser Method Executable Code Section– Browse on
Today is November 23, 2024, 2:23 am This article has been viewed 35370 times. Google search has resulted in 162 hits on this article since January 25, 2004.
|
|