Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed in coping locator behaviour 1

Status
Not open for further replies.

rleiman

Programmer
May 3, 2006
258
US
Hi Everyone,

I have 3 entry fields in a browse procedure with code behind them that re-positions the highlight in a listbox as the user tabs out of each field. Credit is due to ShankarJ who helped me alot on this concept. The first of these fields is called LOC:StateLocator. There are also other tabs on this listbox as well.

Here is what I like about the way Clarion set up an entry locator: The user enters something into the locator then presses tab. The highlight bar jumps to the appropriate row in the listbox. When the user wants to locate another row in the listbox all they have to do is just start typing and the cursor jumps write up the locator field.

The jumping up to the locator field is the behaviour I would like to copy with my LOC:StateLocator entry field.

Sorry for such a wordy post but I love how Clarion make that thing work!

Thanks in advance.

Emad
 
Hi Emad,

I am not sure I understand you but if you are trying to say that you want the ENTRY Locator Controls visible in ALL the Tabs (which I assume is used for different sort orders) than you need to place the Entry Locator Control Outside the Sheet Control. Press F12 in the Window Formatter and mark the control using Windows marking i.e. use of Ctrl & Shift with mouse click and move it outside the Sheet Control. This way, the Locator Control are visible on all the Tabs.

Regards
 
Hi ShankarJ,

Thanks for the reply.

The entry field is not a real locator, but just a plain entry field. It already positions the highlight bar in the listbox and places focus on the listbox when the user tabs out of it.

What I am hoping to do is place the first character that is inside the keyboard buffer into the entry field when the user presses a letter key while the focus is still on the listbox, then send focus to that entry field.

I am not sure what code to use and which embed to place the code into.

Thanks.

Emad
 
Hi Emad,

If you have overridden the Locator Control in the Locator Behaviour Tab of the Browse properties and pointed it to this Entry Control, you would get the desired behaviour.

Regards
 
Hi ShankarJ,

Thanks. I try it tonight.

Truly,
Emad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top