Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » mask in text control
mask in text control [message #450583] Tue, 15 February 2005 16:44 Go to next message
Eclipse UserFriend
Originally posted by: danny.g2k.es

Hi, Any one with the same problem like me?. I need define a mask for
text control to show date with "/" and edit the date into de control
without remove separator characters.

Any hints?

Thanks
Danny
Re: mask in text control [message #450587 is a reply to message #450583] Tue, 15 February 2005 18:28 Go to previous messageGo to next message
Kalman Hazins is currently offline Kalman HazinsFriend
Messages: 76
Registered: July 2009
Member
try using VerifyListener and regex ... That's the closest I've gotten ...
Also, google on the web for SWT calendar - you can connect it to a textfield
....


"Danny Garcia Hernandez" <danny@g2k.es> wrote in message
news:cut8sk$9ak$1@www.eclipse.org...
> Hi, Any one with the same problem like me?. I need define a mask for
> text control to show date with "/" and edit the date into de control
> without remove separator characters.
>
> Any hints?
>
> Thanks
> Danny
Re: mask in text control [message #450601 is a reply to message #450587] Tue, 15 February 2005 23:09 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet179.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

Has a bug on GTK however - screws up the caret location. There should be a
bugzilla report on this against SWT but I can't seem to find it.


"Kalman" <kalman@zikal.com> wrote in message
news:cutesr$799$1@www.eclipse.org...
> try using VerifyListener and regex ... That's the closest I've gotten ...
> Also, google on the web for SWT calendar - you can connect it to a
> textfield
> ...
>
>
> "Danny Garcia Hernandez" <danny@g2k.es> wrote in message
> news:cut8sk$9ak$1@www.eclipse.org...
>> Hi, Any one with the same problem like me?. I need define a mask for
>> text control to show date with "/" and edit the date into de control
>> without remove separator characters.
>>
>> Any hints?
>>
>> Thanks
>> Danny
>
>
Previous Topic:highlighting a piece of text in the text widget
Next Topic:Hide/Show column
Goto Forum:
  


Current Time: Tue Sep 24 02:41:08 GMT 2024

Powered by FUDForum. Page generated in 0.03333 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top