Title: RE: Finding Cursor Position in a Field
**

As the Guiness beer guys would say: "BRILLIANT!"

 

Just use a menu with the APPEND feature turned on! Duh! Thanks, Dave...why didn't I think of that?

 


From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of David Sanders
Sent: Wednesday, July 12, 2006 11:42 AM
To: arslist@ARSLIST.ORG
Subject: Re: Finding Cursor Position in a Field

 

Hi Norm

 

You could use OLE and Send Keys to achieve this I think.  Attached is a small def file to demonstrate this (the form is one I use to test Business Time Calculations, so that might be useful to you too I hope).

 

Import the def file, type some text into the character field, place the cursor somewhere in the text, then click the menu Item Bold (or type Alt-B) and it should insert <B> at the cursor.  You need to use a menu item otherwise focus moves away from the character field and you lose the cursor position.

 

HTH

 

David Sanders

Remedy Solution Architect

Enterprise Service Suite @ Work

==========================

ARS List Award Winner 2005

Best 3rd party Remedy Application

 

tel +44 1494 468980

mobile +44 7710 377761

email [EMAIL PROTECTED]

 

web http://www.westoverconsulting.co.uk

 


From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Kaiser Norm E CIV USAF 96 CG/SCWOE
Sent: Wednesday, July 12, 2006 4:45 PM
To: arslist@ARSLIST.ORG
Subject: Re: Finding Cursor Position in a Field

 

Yes, that's what I'm trying to do.  I'm building an app that generates HTML on the fly, and I want to allow the user to be able to insert bold, italics, bulleted lists, etc. into the text by clicking a button--very much like HTML editors you see on chat boards.  It works great, so long as the user wants the formatting inserted at the end of the text.  It he says to himself, "Oh yeah, I wanted the third word up in the second paragraph to be bold," he has to insert the markup tags manually.

-----Original Message-----
From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Rabi Tripathi
Sent: Wednesday, July 12, 2006 10:36 AM
To: arslist@ARSLIST.ORG
Subject: Re: Finding Cursor Position in a Field

I can imagine being able to do so in a browser using
_javascript_, but not on windows client.

What is it you wish to do? Insert text at the cursor
position? I once tried to do exactly that, but I
couldn't. I was able to get around it and build a
workable solution that didn't require me to know the
position.

Or, are you trying to do something different?

 

--- Kaiser Norm E CIV USAF 96 CG/SCWOE
<[EMAIL PROTECTED]> wrote:

> Hi everyone:
>

>
> Has anyone discovered a way to find the cursor
> position within a text field
> yet? I know there's been some discussion of that
> issue on the list before,
> but I don't think there was ever a solution.
>

>
> In other words, say you have a text field with the
> following text:  Hello
> ARS L|ist
>

>
> The pipe represents the cursor.  What I'm looking
> for is a method that will
> tell me that the cursor is at position 11 (or 12 or
> whatever it is) in the
> text field.  Any ideas?
>

>
> Norm
>
>
>
_______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at
> http://www.wwrug.org
>

 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

__20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___

************ EGLIN AIR FORCE BASE MAIL ALERT ************

The original file attachment has been deleted by the Eglin Mail Filter. (FILTER3)

The deleted file could potentially contain malicious code and was removed to protect the Eglin computing environment.  Any loss of data is regrettable but unavoidable.

Please contact your Information Assurance office with any questions you might have.

************ EGLIN AIR FORCE BASE MAIL ALERT ************
__20060125_______________________This posting was submitted with HTML in it___

Reply via email to