Thanks Jack,
That works great, but if I now find a new insertion point and click the Tab key 
it adds the tab where the curser was previously.
Thanks, that works for now.
Lennox

CV <[EMAIL PROTECTED]> wrote: 
On Jan 8, 2006, at 10:47 AM, Lennox Jacob wrote:

> Hello,
> I have an app with a Styled EditField and I have checked Accept  
> Tabs but it accept Tabs as only one space, how can I configure that  
> to accept Tabs as five spaces?

You can do something like this:

Function KeyDown(Key As String) As Boolean
   dim Spaces as string = "               "
   If key = chr(9) then
     me.SelStart = Len(me.text)
     me.SelText = left(Spaces,5)
     return true
   End
End Function


Best,

Jack
_______________________________________________
Unsubscribe or switch delivery mode:


Search the archives of this list here:




                
---------------------------------
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!
_______________________________________________
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>

Reply via email to