Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » OLE Datepicker control
OLE Datepicker control [message #443495] Sat, 25 September 2004 13:22 Go to next message
Balaji Kandan is currently offline Balaji KandanFriend
Messages: 20
Registered: July 2009
Junior Member
hi all,
i was looking for an datepicker control in swt and found two of them, which
was not that good looking. So, i thought i will go ahead and write my own
version of OLE datepicker, similar to the Browser control provided in the
swt package. i have exposed almost all the functionalities provided in
windows datepicker control, and was unable to figure out how to add
evenlisteners for the control. If anyone has any idea about how to hook
listeners to activex controls from SWT, kindly let me know, so that i will
be able to upgrade this control.

balaji kandan
w: http://www.orangescape.com


Re: OLE Datepicker control [message #443522 is a reply to message #443495] Mon, 27 September 2004 08:10 Go to previous messageGo to next message
Tiberiu Caprita is currently offline Tiberiu CapritaFriend
Messages: 68
Registered: July 2009
Member
Hi Balaji,
if you are looking for a DatePicker in Windows, you can use those exposed
by Microsoft:
MSComCtl2.DTPicker or MSComCtl2.MonthView (found in MSCOMCT2.OCX).

In order to kook event listeners, you have to use OleControlSite class.

Tiberiu
PS There is already a DatePicker written with SWT classes
(http://sourceforge.net/projects/swt-datepicker).
Re: OLE Datepicker control [message #443567 is a reply to message #443522] Tue, 28 September 2004 14:25 Go to previous messageGo to next message
Balaji Kandan is currently offline Balaji KandanFriend
Messages: 20
Registered: July 2009
Junior Member
hi Tiberiu,
i looked at it, and it was not that impressive given the bugs and less
activity in the group. There are two plugins available, but the other opens
up a new window, and i need a combo like control.
and for the eventlisteners, if u look in to the Browser control, there will
be lot of constants declared with some hexa-decimal value. without knowing
where to find that information, i wont be able to implement evetlisteners.

btw, this control will work only if mscomct32.ocx is present in the system.

balaji

"Tiberiu Caprita" <capritat@hotmail.com> wrote in message
news:cj8huc$g4o$1@eclipse.org...
> Hi Balaji,
> if you are looking for a DatePicker in Windows, you can use those exposed
> by Microsoft:
> MSComCtl2.DTPicker or MSComCtl2.MonthView (found in MSCOMCT2.OCX).
>
> In order to kook event listeners, you have to use OleControlSite class.
>
> Tiberiu
> PS There is already a DatePicker written with SWT classes
> (http://sourceforge.net/projects/swt-datepicker).
>
>
Re: OLE Datepicker control [message #443704 is a reply to message #443495] Wed, 29 September 2004 14:21 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See controlSite.addEventListener

Here is an example using IE that should also work for the date picker:

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

"Balaji Kandan" <bkandan@orangescape.com> wrote in message
news:cj3ra4$70v$1@eclipse.org...
> hi all,
> i was looking for an datepicker control in swt and found two of them,
> which was not that good looking. So, i thought i will go ahead and write
> my own version of OLE datepicker, similar to the Browser control provided
> in the swt package. i have exposed almost all the functionalities provided
> in windows datepicker control, and was unable to figure out how to add
> evenlisteners for the control. If anyone has any idea about how to hook
> listeners to activex controls from SWT, kindly let me know, so that i will
> be able to upgrade this control.
>
> balaji kandan
> w: http://www.orangescape.com
>
>
Previous Topic:RCP JFace app sinking status bar
Next Topic:SWT on PocketPC
Goto Forum:
  


Current Time: Mon Sep 23 20:34:02 GMT 2024

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

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

Back to the top