Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Graphical Problem with DateTime widget
Graphical Problem with DateTime widget [message #108959] Mon, 13 October 2008 13:27 Go to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
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 13: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 13:52 Go to previous messageGo to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
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 14: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 15:06 Go to previous messageGo to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
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 16: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 08:27 Go to previous messageGo to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
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 10: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: Fri Apr 26 13:13:58 GMT 2024

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

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

Back to the top