Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Question about Toolbars and tool items..
Question about Toolbars and tool items.. [message #450302] Wed, 09 February 2005 22:31 Go to next message
Frank Pavelski is currently offline Frank PavelskiFriend
Messages: 2
Registered: July 2009
Junior Member
I have an application that creates a ToolBar and the creates a single
ToolItem on it.

When the application is running.. tooltip text is displaying properly when I
hover the cursor over the ToolItem.

Once I click on the ToolItem.. tooltip fails to display any more.. .even if
I move the cursor off of the ToolItem and back on to it.

I am setting the size of the ToolBar based on a call to compute size..

Like this..
ToolBar toolbar = new ToolBar(<some composite?, SWT.NONE);

ToolItem popupItem = new ToolItem(toolbar, SWT.PUSH | SWT.FLAT);
popupItem.setImage(<someimage>);
popupItem.setToolTipText("some tooltip text");
Point pt = _datePickerPopupButton.computeSize(SWT.DEFAULT,
SWT.DEFAULT, true);
toolbar.setSize(pt);

I have found that if I increment the size by 1 pixel in each dimension.. the
tooltip text works correctly, even after I click on the ToolItem

Is this a know bug or am I doing something completely wrong here?
Re: Question about Toolbars and tool items.. [message #450356 is a reply to message #450302] Thu, 10 February 2005 19:02 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Sounds like a Windows bug. Enter a problem report and we can try and work
around it.

"Frank Pavelski" <pavelski@notesdev.ibm.com> wrote in message
news:cue2t5$p6i$1@www.eclipse.org...
> I have an application that creates a ToolBar and the creates a single
> ToolItem on it.
>
> When the application is running.. tooltip text is displaying properly when
I
> hover the cursor over the ToolItem.
>
> Once I click on the ToolItem.. tooltip fails to display any more.. .even
if
> I move the cursor off of the ToolItem and back on to it.
>
> I am setting the size of the ToolBar based on a call to compute size..
>
> Like this..
> ToolBar toolbar = new ToolBar(<some composite?, SWT.NONE);
>
> ToolItem popupItem = new ToolItem(toolbar, SWT.PUSH | SWT.FLAT);
> popupItem.setImage(<someimage>);
> popupItem.setToolTipText("some tooltip text");
> Point pt = _datePickerPopupButton.computeSize(SWT.DEFAULT,
> SWT.DEFAULT, true);
> toolbar.setSize(pt);
>
> I have found that if I increment the size by 1 pixel in each dimension..
the
> tooltip text works correctly, even after I click on the ToolItem
>
> Is this a know bug or am I doing something completely wrong here?
>
>
>
Re: Question about Toolbars and tool items.. [message #450360 is a reply to message #450356] Thu, 10 February 2005 19:53 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
I have noticed the same problem since some time. I think I first saw it
in some early 3.0 Milestone.
Not sure if there isn't already a bug report opened on it.

Ben

>Sounds like a Windows bug. Enter a problem report and we can try and work
>around it.
>
>"Frank Pavelski" <pavelski@notesdev.ibm.com> wrote in message
>news:cue2t5$p6i$1@www.eclipse.org...
>
>
>>I have an application that creates a ToolBar and the creates a single
>>ToolItem on it.
>>
>>When the application is running.. tooltip text is displaying properly when
>>
>>
>I
>
>
>>hover the cursor over the ToolItem.
>>
>>Once I click on the ToolItem.. tooltip fails to display any more.. .even
>>
>>
>if
>
>
>>I move the cursor off of the ToolItem and back on to it.
>>
>>I am setting the size of the ToolBar based on a call to compute size..
>>
>>Like this..
>> ToolBar toolbar = new ToolBar(<some composite?, SWT.NONE);
>>
>> ToolItem popupItem = new ToolItem(toolbar, SWT.PUSH | SWT.FLAT);
>> popupItem.setImage(<someimage>);
>> popupItem.setToolTipText("some tooltip text");
>> Point pt = _datePickerPopupButton.computeSize(SWT.DEFAULT,
>>SWT.DEFAULT, true);
>> toolbar.setSize(pt);
>>
>>I have found that if I increment the size by 1 pixel in each dimension..
>>
>>
>the
>
>
>>tooltip text works correctly, even after I click on the ToolItem
>>
>>Is this a know bug or am I doing something completely wrong here?
>>
>>
>>
>>
>>
>
>
>
>
Re: Question about Toolbars and tool items.. [message #450435 is a reply to message #450356] Fri, 11 February 2005 21:51 Go to previous message
Frank Pavelski is currently offline Frank PavelskiFriend
Messages: 2
Registered: July 2009
Junior Member
Actually... after a little more digging.. I am now convinced it's a XP
issue...

Was trying to write a simple example that reproduced the problem but was
having no luck.. What threw me off was that my application uses the XP theme
(that is, my application's JRE has the javaw.exe.manifest file setup as
described in another post to this group)...

But.. my eclipse IDE that I use for examples and play is not using the XP
theme...

You can reproduce the problem in eclipse (if using XP theme) by hovering
over any toobar that has only 1 tool item..
Hover over it long enough so that the hover text appears.. then subsequently
disappears (about 5 seconds or so?)
Move the mouse off the toolbar and then back on.... no tool tip text is
displayed...

By the way.. you can reproduce this on Windows explorer too (again.. on an
XP system).

Just hover over the green "Go" button and wait for hover text to appear and
the disappear.. move off the button, then back on.. no hover text.

My comments below about the problem being related to setting the size of the
toolbar has nothing to do with the problem.
"Steve Northover" <steve_northover@ca.ibm.com> wrote in message
news:cugb4t$cd2$1@www.eclipse.org...
> Sounds like a Windows bug. Enter a problem report and we can try and work
> around it.
>
> "Frank Pavelski" <pavelski@notesdev.ibm.com> wrote in message
> news:cue2t5$p6i$1@www.eclipse.org...
> > I have an application that creates a ToolBar and the creates a single
> > ToolItem on it.
> >
> > When the application is running.. tooltip text is displaying properly
when
> I
> > hover the cursor over the ToolItem.
> >
> > Once I click on the ToolItem.. tooltip fails to display any more.. .even
> if
> > I move the cursor off of the ToolItem and back on to it.
> >
> > I am setting the size of the ToolBar based on a call to compute size..
> >
> > Like this..
> > ToolBar toolbar = new ToolBar(<some composite?, SWT.NONE);
> >
> > ToolItem popupItem = new ToolItem(toolbar, SWT.PUSH | SWT.FLAT);
> > popupItem.setImage(<someimage>);
> > popupItem.setToolTipText("some tooltip text");
> > Point pt = _datePickerPopupButton.computeSize(SWT.DEFAULT,
> > SWT.DEFAULT, true);
> > toolbar.setSize(pt);
> >
> > I have found that if I increment the size by 1 pixel in each dimension..
> the
> > tooltip text works correctly, even after I click on the ToolItem
> >
> > Is this a know bug or am I doing something completely wrong here?
> >
> >
> >
>
>
Previous Topic:When i redraw a canvas, it clears the old stuff
Next Topic:Bootloader constants from command line?
Goto Forum:
  


Current Time: Fri Apr 26 12:47:32 GMT 2024

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

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

Back to the top