Home » Eclipse Projects » Standard Widget Toolkit (SWT) » data input verifying
data input verifying [message #463594] |
Thu, 10 November 2005 13:34 |
Eclipse User |
|
|
|
Originally posted by: zmfeng.21cn.com
I used to be a PowerBuilder programmer,now trying to port some program
to swt. in the case of powerbuilder,there's a control named EditMask,when
you use it,for example,set it's data type to a date format,and them set the
mask to "yyyy/mm/dd",the input space will have " / / " as default and
when you input a date,it do verify on the fly,it's good to use. the EditMask
under PowerBuilder have many mask read for usage and it's good to use.
Now in the case of SWT,I can't find a relative control about this,can
someone help me!
Thanks alot!
zmFeng
|
|
|
Re: data input verifying [message #463595 is a reply to message #463594] |
Thu, 10 November 2005 14:09 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
See the following examples:
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
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet196.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
"zmFeng" <zmfeng@21cn.com> wrote in message
news:dkvi90$pae$1@news.eclipse.org...
> I used to be a PowerBuilder programmer,now trying to port some program
> to swt. in the case of powerbuilder,there's a control named EditMask,when
> you use it,for example,set it's data type to a date format,and them set
> the mask to "yyyy/mm/dd",the input space will have " / / " as default
> and when you input a date,it do verify on the fly,it's good to use. the
> EditMask under PowerBuilder have many mask read for usage and it's good to
> use.
> Now in the case of SWT,I can't find a relative control about this,can
> someone help me!
> Thanks alot!
> zmFeng
>
>
|
|
|
Re: data input verifying [message #463597 is a reply to message #463595] |
Thu, 10 November 2005 14:21 |
Eclipse User |
|
|
|
Originally posted by: zmfeng.21cn.com
Thank you for your help,Veronika Irvine. this snippets does help
something,but in the case of powerbuilder,it's validation is on the fly,that
means, when you try to type 31 in the month field,it won't let you go,it
doesn't like the one in snippet179,I call it post-validation.by the way,the
snippet only assume my date mask to be yyyy/mm/dd,but sometimes there will
be chance to use mm/dd/yy or event mm/dd hh:mm or something like
that.PowerBuilder can handle this very well,but as I know,SWT can't do
this.....
can any one else provide more information about this??
Thanks!
"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:dkvkao$sng$1@news.eclipse.org...
> See the following examples:
>
> 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
>
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet196.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>
> "zmFeng" <zmfeng@21cn.com> wrote in message
> news:dkvi90$pae$1@news.eclipse.org...
>> I used to be a PowerBuilder programmer,now trying to port some program
>> to swt. in the case of powerbuilder,there's a control named EditMask,when
>> you use it,for example,set it's data type to a date format,and them set
>> the mask to "yyyy/mm/dd",the input space will have " / / " as
>> default and when you input a date,it do verify on the fly,it's good to
>> use. the EditMask under PowerBuilder have many mask read for usage and
>> it's good to use.
>> Now in the case of SWT,I can't find a relative control about this,can
>> someone help me!
>> Thanks alot!
>> zmFeng
>>
>>
>
>
|
|
|
Re: data input verifying [message #463606 is a reply to message #463597] |
Thu, 10 November 2005 17:32 |
Haris Peco Messages: 1072 Registered: July 2009 |
Senior Member |
|
|
no, you haven't this in swt - you have to make this behaviour
zmFeng wrote:
> Thank you for your help,Veronika Irvine. this snippets does help
> something,but in the case of powerbuilder,it's validation is on the
> fly,that means, when you try to type 31 in the month field,it won't let
> you go,it doesn't like the one in snippet179,I call it post-validation.by
> the way,the snippet only assume my date mask to be yyyy/mm/dd,but
> sometimes there will be chance to use mm/dd/yy or event mm/dd hh:mm or
> something like that.PowerBuilder can handle this very well,but as I
> know,SWT can't do this.....
> can any one else provide more information about this??
> Thanks!
> "Veronika Irvine" <veronika_irvine@oti.com> wrote in message
> news:dkvkao$sng$1@news.eclipse.org...
>> See the following examples:
>>
>>
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
>>
>>
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet196.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>>
>> "zmFeng" <zmfeng@21cn.com> wrote in message
>> news:dkvi90$pae$1@news.eclipse.org...
>>> I used to be a PowerBuilder programmer,now trying to port some
>>> program
>>> to swt. in the case of powerbuilder,there's a control named
>>> EditMask,when you use it,for example,set it's data type to a date
>>> format,and them set
>>> the mask to "yyyy/mm/dd",the input space will have " / / " as
>>> default and when you input a date,it do verify on the fly,it's good to
>>> use. the EditMask under PowerBuilder have many mask read for usage and
>>> it's good to use.
>>> Now in the case of SWT,I can't find a relative control about this,can
>>> someone help me!
>>> Thanks alot!
>>> zmFeng
>>>
>>>
>>
>>
|
|
| |
Goto Forum:
Current Time: Fri Mar 29 07:39:09 GMT 2024
Powered by FUDForum. Page generated in 0.07483 seconds
|