Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Graphical Problem with DateTime widget
Graphical Problem with DateTime widget [message #108959] Mon, 13 October 2008 09:27 Go to next message
Eclipse UserFriend
Hi,

I have a problem using the DateTime widget.
When using the SWT.TIME style the numbers in the widget are cut on their
right side so that only one part of them is displayed. I tried resizing
the widget but that doesn't help.
Any advice what I can do regarding this problem?

Thanks in advance,

Gunnar
Re: Graphical Problem with DateTime widget [message #108975 is a reply to message #108959] Mon, 13 October 2008 09:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ifurnadjiev.innoopract.com

Hi Gunnar,

what browser/OS do you use? What is the browser locale? Try to reload
the page - is this fix the problem?

Best,
Ivan

Gunnar Wurl wrote:
> Hi,
>
> I have a problem using the DateTime widget.
> When using the SWT.TIME style the numbers in the widget are cut on
> their right side so that only one part of them is displayed. I tried
> resizing the widget but that doesn't help.
> Any advice what I can do regarding this problem?
>
> Thanks in advance,
>
> Gunnar
>
Re: Graphical Problem with DateTime widget [message #108987 is a reply to message #108975] Mon, 13 October 2008 09:52 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the quick answer Ivan,

I am using firefox 3.0.3 and Internet Explorer 7.
Both have the problem.
What do you mean with browser locale?
Refreshing solved the problem, but how can it be done from the start?

Thanks again,

Gunnar
Re: Graphical Problem with DateTime widget [message #109000 is a reply to message #108987] Mon, 13 October 2008 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ifurnadjiev.innoopract.com

Hi Gunnar,

the problem occurs only the first time, since the textsize determination
does an educated guess the first time.

Best,
Ivan

Gunnar Wurl wrote:
> Thanks for the quick answer Ivan,
>
> I am using firefox 3.0.3 and Internet Explorer 7.
> Both have the problem.
> What do you mean with browser locale?
> Refreshing solved the problem, but how can it be done from the start?
>
> Thanks again,
>
> Gunnar
>
Re: Graphical Problem with DateTime widget [message #109012 is a reply to message #109000] Mon, 13 October 2008 11:06 Go to previous messageGo to next message
Eclipse UserFriend
Well is there a workaround, so that the size is showed correct at first
time?

Ivan Furnadjiev wrote:

> Hi Gunnar,

> the problem occurs only the first time, since the textsize determination
> does an educated guess the first time.

> Best,
> Ivan
Re: Graphical Problem with DateTime widget [message #109038 is a reply to message #109012] Mon, 13 October 2008 12:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ifurnadjiev.innoopract.com

Hi Gunnar,

can you provide a snippet that reproduce it? It will be very helpful,
because in the Control Demo the DateTime text size is calculated correct.

Best,
Ivan

Gunnar Wurl wrote:
> Well is there a workaround, so that the size is showed correct at
> first time?
>
> Ivan Furnadjiev wrote:
>
>> Hi Gunnar,
>
>> the problem occurs only the first time, since the textsize determination
>> does an educated guess the first time.
>
>> Best,
>> Ivan
>
>
Re: Graphical Problem with DateTime widget [message #109078 is a reply to message #109038] Tue, 14 October 2008 04:27 Go to previous messageGo to next message
Eclipse UserFriend
Yes sure,

it is just a simple shell containing the DateTime widget.

public class Application implements IEntryPoint {

public int createUI() {
Display display = new Display();
display.getThread().setPriority(Thread.MAX_PRIORITY);
Shell shell = new Shell( display, SWT.SHELL_TRIM );
shell.setLayout( new FillLayout() );
shell.setText( "DATE-TIME TEST" );

new DateTime( shell, SWT.TIME | SWT.BORDER );

shell.setSize( 300, 300 );
shell.open();
while( !shell.isDisposed() )
{
if( !display.readAndDispatch() )
{
display.sleep();
}
}
return 0;
}
}

Thanks in advance,

Gunnar

Ivan Furnadjiev wrote:

> Hi Gunnar,

> can you provide a snippet that reproduce it? It will be very helpful,
> because in the Control Demo the DateTime text size is calculated correct.

> Best,
> Ivan
Re: Graphical Problem with DateTime widget [message #109114 is a reply to message #109078] Tue, 14 October 2008 06:42 Go to previous message
Eclipse UserFriend
Originally posted by: ifurnadjiev.innoopract.com

Hi Gunnar,

It seems that there is a problem with DateTime widget in FillLayout.
Please file a bug for easy status tracking.

Best,
Ivan
Previous Topic:embedding HTML and convert normal link as SWT Link
Next Topic:shortcut and/or bookmark of app
Goto Forum:
  


Current Time: Mon Jul 14 13:54:18 EDT 2025

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

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

Back to the top