` Clearing locator (Josh Landin ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Clearing locator
2000-03-03 -- Josh Landin
 
Assuming you are using ABC this is an easy way of getting your results. Goto the Source of the Browse procedure and search for: Locator.TakeKey PROCEDURE Inside that TakeKey method, right before it RETURNs you can input the following code: ?locatorstr{PROP:TEXT} = clip(SELF.shadow) (where '?locatorstr' is your screen string for displaying the locator field) That'll take care of it. Should look like this: ReturnValue =PARENT.TakeKey() ! [Priority 7500] !---------------grey edge------------------------- ;-) ?locatorstr{PROP:TEXT} = clip(SELF.shadow) !---------------grey edge------------------------- ;-) ! End of "Locator Method Executable Code Section" RETURN ReturnValue Keep in mind that if you add more locators to the same browse box (ie: Conditional locators) then you must embed the same line of code into their TakeKey methods. As for clearing it every 7 seconds, you can use a timer on the window to call one of the Locator methods. Possibly Locator.Set() or Locator.Reset()


Today is November 21, 2024, 8:25 am
This article has been viewed 35334 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: