Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Using mask into text control
Using mask into text control [message #449945] Tue, 01 February 2005 07:02 Go to next message
Eclipse UserFriend
Originally posted by: danny.g2k.es

Hi List.

Some body can explain me how i can use mask edit or mask view into text
control?. For example, i have a text control representing a float field,
the user type into the control and i want constraint the user typing and
the how long the text is. The same for text control repesenting date field.

Thanks
Danny
Re: Using mask into text control [message #450002 is a reply to message #449945] Thu, 03 February 2005 17:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: danny.g2k.es

Danny Garcia Hernandez wrote:
> Hi List.
>
> Some body can explain me how i can use mask edit or mask view into text
> control?. For example, i have a text control representing a float field,
> the user type into the control and i want constraint the user typing and
> the how long the text is. The same for text control repesenting date field.
>
> Thanks
> Danny

Please, any body can give me some tips?

Thanks
Danny
Re: Using mask into text control [message #450003 is a reply to message #450002] Thu, 03 February 2005 17:54 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You could try a variation on the snippet below which uses the verify event:

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

"Danny Garcia Hernandez" <danny@g2k.es> wrote in message
news:cttnpo$3il$1@www.eclipse.org...
> Danny Garcia Hernandez wrote:
>> Hi List.
>>
>> Some body can explain me how i can use mask edit or mask view into text
>> control?. For example, i have a text control representing a float field,
>> the user type into the control and i want constraint the user typing and
>> the how long the text is. The same for text control repesenting date
>> field.
>>
>> Thanks
>> Danny
>
> Please, any body can give me some tips?
>
> Thanks
> Danny
Previous Topic:CellEditor in TableViewer
Next Topic:Non activeX and oleObject instanciation problem
Goto Forum:
  


Current Time: Thu May 09 10:13:23 GMT 2024

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

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

Back to the top