move the code we supplied into the CellGotFocus event, that oughta do
it.
Cheers,
Tom
On 08/12/2006, at 2:05 AM, Harald Schneider wrote:
Thanks for these quick replies, but none of them seem to work :-/
I move thru the grid with the cursor keys which I check in the
CellKeyDown() Event. When moving to another cell, I activate it
with me.EditCell(row,column) in the CellKeyDown() Event.
This works perfectly on screen, but something seems to overwrite or
supress the selection via me.ActiveCel.Sel....
Any further hints ?
Thanks,
Harald
Tom Benson schrieb:
Or, for a slightly more human readable solution, which I tend to
prefer:
me.activeCell.SelStart = 0
me.activeCell.SelLength = Len(me.activeCell.text)
- Tom
On 07/12/2006, at 10:17 PM, Jonathan Johnson wrote:
On Dec 7, 2006, at 5:14 AM, Harald Schneider wrote:
Hi,
is it possible to highlight all text inside an editable cell
when clicking into that cell? This would be useful to overwrite
existing content automatically.
Any thoughts?
In the ListBox.CellGotFocus event, add the two lines:
me.ActiveCell.SelStart = 0
me.ActiveCell.SelLength = &h7FFFFFFF
HTH,
Jon
--Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>