DateTime-BUG or Dialog-BUG? [message #541926] |
Wed, 23 June 2010 08:56 |
Bassspieler Messages: 40 Registered: April 2010 Location: Germany |
Member |
|
|
Hi!
Conditions:
DateTime(SWT.DATE | SWT.DROP_DOWN | SWT.BORDER)-Widget in a resizable dialog. Try to select a date in the future (>2 months) via the drop-down-calendar.
Effect:
Sometimes (1of10) the opened calendar is unclosable. Usually it closes automatically, when you click a specific date.
It occurs more often, if you put two widgets inside the dialog.
Can someone reproduce it, too?
Used RAP: 1.3 RC2
Best regards,
Bassspieler
import org.eclipse.jface.dialogs.TrayDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Shell;
public class DateTimeDialog extends TrayDialog {
public DateTimeDialog(Shell shell) {
super(shell);
}
@Override
protected Control createDialogArea(Composite parent) {
DateTime dtDate = new DateTime(parent, SWT.DATE | SWT.DROP_DOWN | SWT.BORDER);
dtDate.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
dtDate.setDate(2010, 1, 2);
DateTime dtDate1 = new DateTime(parent, SWT.DATE | SWT.DROP_DOWN | SWT.BORDER);
dtDate1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
dtDate1.setDate(2010, 1, 3);
return parent;
}
@Override
protected boolean isResizable() {
return true;
}
}
|
|
|
Re: DateTime-BUG or Dialog-BUG? [message #542207 is a reply to message #541926] |
Thu, 24 June 2010 08:56 |
|
Lieber Bassspieler,
I can reproduce this problem. I'd suggest that you open a bug and
include your sample snippet, then we can sort it out.
Best, Ralf
Bassspieler wrote:
> Hi!
>
> Conditions:
> DateTime(SWT.DATE | SWT.DROP_DOWN | SWT.BORDER)-Widget in a resizable
> dialog. Try to select a date in the future (>2 months) via the
> drop-down-calendar.
>
> Effect:
> Sometimes (1of10) the opened calendar is unclosable. Usually it closes
> automatically, when you click a specific date.
> It occurs more often, if you put two widgets inside the dialog.
>
> Can someone reproduce it, too?
> Used RAP: 1.3 RC2
>
> Best regards,
> Bassspieler
>
> import org.eclipse.jface.dialogs.TrayDialog;
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.layout.GridData;
> import org.eclipse.swt.widgets.Composite;
> import org.eclipse.swt.widgets.Control;
> import org.eclipse.swt.widgets.DateTime;
> import org.eclipse.swt.widgets.Shell;
>
> public class DateTimeDialog extends TrayDialog {
>
> public DateTimeDialog(Shell shell) {
> super(shell);
> }
>
> @Override
> protected Control createDialogArea(Composite parent) {
>
> DateTime dtDate = new DateTime(parent, SWT.DATE | SWT.DROP_DOWN
> | SWT.BORDER);
> dtDate.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
> false));
> dtDate.setDate(2010, 1, 2);
>
> DateTime dtDate1 = new DateTime(parent, SWT.DATE | SWT.DROP_DOWN
> | SWT.BORDER);
> dtDate1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
> false));
> dtDate1.setDate(2010, 1, 3);
>
> return parent;
> }
>
> @Override
> protected boolean isResizable() {
> return true;
> }
>
> }
|
|
|
|
Powered by
FUDForum. Page generated in 0.02072 seconds