Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Tooltip extra large
Tooltip extra large [message #234860] Thu, 31 May 2007 15:15 Go to next message
Eclipse UserFriend
Originally posted by: bch.openbluelab.org

Hi,

When I create a tool tip on an element with a label, the tool tip is
very big.

Label labelView = new Label(text);
labelView.setSize(10, 10);
((ClasseFigure) getFigure()).setToolTip(labelView);

Have you an idea ?

Thanks
Re: Tooltip extra large [message #235145 is a reply to message #234860] Tue, 05 June 2007 23:59 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Benjamin,

What platform are you using? setSize() on windows has no affect on the
tooltip.

Cheers...
Anthony

"Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
news:f3mopv$vdd$1@build.eclipse.org...
> Hi,
>
> When I create a tool tip on an element with a label, the tool tip is
> very big.
>
> Label labelView = new Label(text);
> labelView.setSize(10, 10);
> ((ClasseFigure) getFigure()).setToolTip(labelView);
>
> Have you an idea ?
>
> Thanks
Re: Tooltip extra large [message #235158 is a reply to message #235145] Wed, 06 June 2007 07:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bch.openbluelab.org

I use Windows XP so I understand why the tooltip is not resized. So have
you a solution to reduce the size of my tooltip ?

Thanks

Anthony Hunter a écrit :
> Hi Benjamin,
>
> What platform are you using? setSize() on windows has no affect on the
> tooltip.
>
> Cheers...
> Anthony
>
> "Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
> news:f3mopv$vdd$1@build.eclipse.org...
>> Hi,
>>
>> When I create a tool tip on an element with a label, the tool tip is
>> very big.
>>
>> Label labelView = new Label(text);
>> labelView.setSize(10, 10);
>> ((ClasseFigure) getFigure()).setToolTip(labelView);
>>
>> Have you an idea ?
>>
>> Thanks
>
>
Re: Tooltip extra large [message #235188 is a reply to message #235158] Wed, 06 June 2007 13:24 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Benjamin,

I tried your snippet and it worked as I expected on windows XP. What is the
question? Perhaps a screenshot of what you are looking for?

Cheers...
Anthony


"Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
news:f45nr6$vpo$1@build.eclipse.org...
>I use Windows XP so I understand why the tooltip is not resized. So have
>you a solution to reduce the size of my tooltip ?
>
> Thanks
>
> Anthony Hunter a
Re: Tooltip extra large [message #235201 is a reply to message #235188] Wed, 06 June 2007 14:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bch.openbluelab.org

This is a multi-part message in MIME format.
--------------020109010302030108000409
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi

The question is why I have a big tooltip ?

Thanls

Anthony Hunter a
Re: Tooltip extra large [message #235260 is a reply to message #235201] Thu, 07 June 2007 17:50 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Benjamin,

I cannot duplicate this with the GEF examples I have. What is special about
the diagram? Can you duplicate this somewhere other than your code? (This
may be a stretch, but are you using GMF?)

Cheers...
Anthony

"Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
news:f46ho6$8nb$1@build.eclipse.org...
> Hi
>
> The question is why I have a big tooltip ?
>
> Thanls
>
> Anthony Hunter a
Re: Tooltip extra large [message #235298 is a reply to message #235260] Fri, 08 June 2007 08:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bch.openbluelab.org

Hi

I use Topcased wich permit to generate simply an editor; topcased is
based on GEF and the team Topcased say me that I must post my question
on GEF. The team topcased have never used tool tip so they don't know if
they have the same problem.

Thanks

Anthony Hunter a écrit :
> Hi Benjamin,
>
> I cannot duplicate this with the GEF examples I have. What is special about
> the diagram? Can you duplicate this somewhere other than your code? (This
> may be a stretch, but are you using GMF?)
>
> Cheers...
> Anthony
>
> "Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
> news:f46ho6$8nb$1@build.eclipse.org...
>> Hi
>>
>> The question is why I have a big tooltip ?
>>
>> Thanls
>>
>> Anthony Hunter a écrit :
>>> Hi Benjamin,
>>>
>>> I tried your snippet and it worked as I expected on windows XP. What is
>>> the
>>> question? Perhaps a screenshot of what you are looking for?
>>>
>>> Cheers...
>>> Anthony
>>>
>>>
>>> "Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
>>> news:f45nr6$vpo$1@build.eclipse.org...
>>>> I use Windows XP so I understand why the tooltip is not resized. So have
>>>> you a solution to reduce the size of my tooltip ?
>>>>
>>>> Thanks
>>>>
>>>> Anthony Hunter a écrit :
>>>>> Hi Benjamin,
>>>>>
>>>>> What platform are you using? setSize() on windows has no affect on the
>>>>> tooltip.
>>>>>
>>>>> Cheers...
>>>>> Anthony
>>>>>
>>>>> "Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
>>>>> news:f3mopv$vdd$1@build.eclipse.org...
>>>>>> Hi,
>>>>>>
>>>>>> When I create a tool tip on an element with a label, the tool tip is
>>>>>> very big.
>>>>>>
>>>>>> Label labelView = new Label(text);
>>>>>> labelView.setSize(10, 10);
>>>>>> ((ClasseFigure) getFigure()).setToolTip(labelView);
>>>>>>
>>>>>> Have you an idea ?
>>>>>>
>>>>>> Thanks
>>
>
>
Re: Tooltip extra large [message #240350 is a reply to message #235298] Mon, 24 December 2007 14:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

How can the size of the tooltip be set?

I get a long line of characters, when really what I want is a box
(textarea) - like eclipse makes.


Merry Christmas,

Tomas Zijdemans



Benjamin CHEVALLEREAU wrote:
> Hi
>
> I use Topcased wich permit to generate simply an editor; topcased is
> based on GEF and the team Topcased say me that I must post my question
> on GEF. The team topcased have never used tool tip so they don't know if
> they have the same problem.
>
> Thanks
>
> Anthony Hunter a écrit :
>> Hi Benjamin,
>>
>> I cannot duplicate this with the GEF examples I have. What is special
>> about the diagram? Can you duplicate this somewhere other than your
>> code? (This may be a stretch, but are you using GMF?)
>>
>> Cheers...
>> Anthony
>>
>> "Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
>> news:f46ho6$8nb$1@build.eclipse.org...
>>> Hi
>>>
>>> The question is why I have a big tooltip ?
>>>
>>> Thanls
>>>
>>> Anthony Hunter a écrit :
>>>> Hi Benjamin,
>>>>
>>>> I tried your snippet and it worked as I expected on windows XP. What
>>>> is the
>>>> question? Perhaps a screenshot of what you are looking for?
>>>>
>>>> Cheers...
>>>> Anthony
>>>>
>>>>
>>>> "Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
>>>> news:f45nr6$vpo$1@build.eclipse.org...
>>>>> I use Windows XP so I understand why the tooltip is not resized. So
>>>>> have
>>>>> you a solution to reduce the size of my tooltip ?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Anthony Hunter a écrit :
>>>>>> Hi Benjamin,
>>>>>>
>>>>>> What platform are you using? setSize() on windows has no affect on
>>>>>> the
>>>>>> tooltip.
>>>>>>
>>>>>> Cheers...
>>>>>> Anthony
>>>>>>
>>>>>> "Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
>>>>>> news:f3mopv$vdd$1@build.eclipse.org...
>>>>>>> Hi,
>>>>>>>
>>>>>>> When I create a tool tip on an element with a label, the tool tip is
>>>>>>> very big.
>>>>>>>
>>>>>>> Label labelView = new Label(text);
>>>>>>> labelView.setSize(10, 10);
>>>>>>> ((ClasseFigure) getFigure()).setToolTip(labelView);
>>>>>>>
>>>>>>> Have you an idea ?
>>>>>>>
>>>>>>> Thanks
>>>
>>
>>
Re: Tooltip extra large [message #240541 is a reply to message #235298] Wed, 09 January 2008 18:28 Go to previous message
Jacques LESCOT is currently offline Jacques LESCOTFriend
Messages: 247
Registered: July 2009
Senior Member
Benjamin,

while trying to add a Tooltip label using Topcased, I also noticed that
the default tooltip size was very large by default. But this might be
easily fixed by using a org.eclipse.draw2d.Label instead of the one
redefined at the Topcased level which inherits from the GMF WrapLabel
causing such a big size.

Benjamin CHEVALLEREAU a écrit :
> Hi
>
> I use Topcased wich permit to generate simply an editor; topcased is
> based on GEF and the team Topcased say me that I must post my question
> on GEF. The team topcased have never used tool tip so they don't know if
> they have the same problem.
>
> Thanks
>
> Anthony Hunter a écrit :
>> Hi Benjamin,
>>
>> I cannot duplicate this with the GEF examples I have. What is special
>> about the diagram? Can you duplicate this somewhere other than your
>> code? (This may be a stretch, but are you using GMF?)
>>
>> Cheers...
>> Anthony
>>
>> "Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
>> news:f46ho6$8nb$1@build.eclipse.org...
>>> Hi
>>>
>>> The question is why I have a big tooltip ?
>>>
>>> Thanls
>>>
>>> Anthony Hunter a écrit :
>>>> Hi Benjamin,
>>>>
>>>> I tried your snippet and it worked as I expected on windows XP. What
>>>> is the
>>>> question? Perhaps a screenshot of what you are looking for?
>>>>
>>>> Cheers...
>>>> Anthony
>>>>
>>>>
>>>> "Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
>>>> news:f45nr6$vpo$1@build.eclipse.org...
>>>>> I use Windows XP so I understand why the tooltip is not resized. So
>>>>> have
>>>>> you a solution to reduce the size of my tooltip ?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Anthony Hunter a écrit :
>>>>>> Hi Benjamin,
>>>>>>
>>>>>> What platform are you using? setSize() on windows has no affect on
>>>>>> the
>>>>>> tooltip.
>>>>>>
>>>>>> Cheers...
>>>>>> Anthony
>>>>>>
>>>>>> "Benjamin CHEVALLEREAU" <bch@openbluelab.org> wrote in message
>>>>>> news:f3mopv$vdd$1@build.eclipse.org...
>>>>>>> Hi,
>>>>>>>
>>>>>>> When I create a tool tip on an element with a label, the tool tip is
>>>>>>> very big.
>>>>>>>
>>>>>>> Label labelView = new Label(text);
>>>>>>> labelView.setSize(10, 10);
>>>>>>> ((ClasseFigure) getFigure()).setToolTip(labelView);
>>>>>>>
>>>>>>> Have you an idea ?
>>>>>>>
>>>>>>> Thanks
>>>
>>
>>
Previous Topic:Right-aligned text
Next Topic:How does one get the current mouse location for a ContexMenuProvider?
Goto Forum:
  


Current Time: Fri Mar 29 14:21:14 GMT 2024

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

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

Back to the top