Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Time widget or Spinner anybody?
Time widget or Spinner anybody? [message #440033] Wed, 21 July 2004 14:08 Go to next message
ted stockwell is currently offline ted stockwellFriend
Messages: 123
Registered: July 2009
Senior Member
Hi All,

I'm looking for an SWT widget for editing time values. I'm looking for a
text widget that would have 3 fields, a hours field, minutes field, and
am/Pm field, with a spiiner on the end. A simliar widget can be seen in
Windows when you double click on the Windows clock, it's the text control
that can be used to edit the time. Anybody seen such a control or have one
that they're willing to share?

On another note...if I have to make such a control for myself then I think
the hardest thing to do would be to make the spinner on the right side of
the control. So, has anybody seen, or have, a Spinner control for SWT?

TIA,
ted stockwell
RPC Software
Re: Time widget or Spinner anybody? [message #440035 is a reply to message #440033] Wed, 21 July 2004 15:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bryanyu.dualforcesolutions.com

see

http://www.eclipse.org/articles/Article-Writing%20Your%20Own %20Widget/Writing%20Your%20Own%20Widget.htm

http://www.eclipse.org/articles/Article-Writing%20Your%20Own %20Widget/Writing%20Your%20Own%20Widget_files/AppendixE.htm

bryan

ted stockwell wrote:
> Hi All,
>
> I'm looking for an SWT widget for editing time values. I'm looking for a
> text widget that would have 3 fields, a hours field, minutes field, and
> am/Pm field, with a spiiner on the end. A simliar widget can be seen in
> Windows when you double click on the Windows clock, it's the text control
> that can be used to edit the time. Anybody seen such a control or have one
> that they're willing to share?
>
> On another note...if I have to make such a control for myself then I think
> the hardest thing to do would be to make the spinner on the right side of
> the control. So, has anybody seen, or have, a Spinner control for SWT?
>
> TIA,
> ted stockwell
> RPC Software
>
Re: Time widget or Spinner anybody? [message #440037 is a reply to message #440033] Wed, 21 July 2004 15:54 Go to previous messageGo to next message
Tiberiu Caprita is currently offline Tiberiu CapritaFriend
Messages: 68
Registered: July 2009
Member
ted stockwell wrote:

> On another note...if I have to make such a control for myself then I think
> the hardest thing to do would be to make the spinner on the right side of
> the control. So, has anybody seen, or have, a Spinner control for SWT?

Spinners can be done just creating 2 Buttons (eventually with style
SWT.ARROW | SWT.DOWN && SWT.ARROW | SWT.UP; if you don't like them you can
create your own pictures for arrows, setting the button dimensions as you
want in GridData).

Regards,
Tiberiu
Re: Time widget or Spinner anybody? [message #440095 is a reply to message #440033] Wed, 21 July 2004 21:30 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=14297

We're writing a native implementation of a Spinner widget for SWT.

Daniel

ted stockwell wrote:

>Hi All,
>
>I'm looking for an SWT widget for editing time values. I'm looking for a
>text widget that would have 3 fields, a hours field, minutes field, and
>am/Pm field, with a spiiner on the end. A simliar widget can be seen in
>Windows when you double click on the Windows clock, it's the text control
>that can be used to edit the time. Anybody seen such a control or have one
>that they're willing to share?
>
>On another note...if I have to make such a control for myself then I think
>the hardest thing to do would be to make the spinner on the right side of
>the control. So, has anybody seen, or have, a Spinner control for SWT?
>
>TIA,
>ted stockwell
>RPC Software
>
>
>
Previous Topic:registering a mouseup event in an embedded ie browser
Next Topic:TableViewer select a single cell
Goto Forum:
  


Current Time: Fri Apr 19 15:55:09 GMT 2024

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

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

Back to the top