Author Topic: Mouseover 'tooltips' for Java editor class browser are truncated  (Read 8884 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com

When I position my mouse over a method (say Image::setPixels) the resulting tooltip is truncated. Near as I can tell these tooltips are the only 'documentation' on what parameters a method takes so it would be nice to see the whole thing :)

This is on an XP Pro (32) install. Will try on Vista x64.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline SteveL

  • Newcomer
  • Posts: 2
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #1 on: 2009 December 11 03:13:09 »
Seeing the same issue here.... was using one of the tools last week sometime (cant remmeber which one) and the tooltip explained what the option was, but got truncated just as it started to explain what the value affected.... not good :(

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #2 on: 2010 January 03 09:15:25 »
This shouldn't happen, and I can't reproduce this problem on any of our test systems (including members of the Jurassic farm).

This is perhaps an issue with system typefaces. You can try editing the win.qss style sheet file. It is on the bin installation folder (C:\PCL\bin or C:\PCL64\bin by default).

Open win.qss with a good plain text editor; for example PixInsight's Script Editor.  Search for the following text:

Code: [Select]
QTreeView#OBObjectTree QToolTip
It should be at line #259 if you haven't modified the original file. This entry determines the font face used to render tool tip messages for items of the Object Browser interface in the Script Editor, which is just what you're having trouble with. By default, this entry is:

Code: [Select]
QTreeView#OBObjectTree QToolTip {
   font-family: DejaVu Sans Mono, Vera Sans Mono, Verdana, Courier, Monospace;
}

You can try something as:

Code: [Select]
QTreeView#OBObjectTree QToolTip {
   font-family: Verdana, Courier, Monospace;
}

which should fix the issue in case your Windows XP is having problems to render DeJaVu fonts. You must exit/re-enter PI for the changes to take effect, or execute Preferences globally with the "Force style sheet update" option enabled (Style Sheet / Special GUI Effects section on the Preferences interface).

Let me know if this solves the problem.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #3 on: 2010 January 03 21:55:29 »
i have the same problem in macos 10.5.7 here, except its not just the java class browser, it's many of the regular processing tools as well.

i can try the same hack, are we talking about /Applications/PixInsight.app/Contents/MacOS/win.qss ?

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #4 on: 2010 January 04 04:23:58 »
Rob,

The style sheet is OS-dependent. On Mac OS X it is osx.qss. For simplicity, the three qss files have been included in all distributions, but only one of them must be used in each case: x11.qss for Linux/X11, osx.qss for Mac OS X, and win.qss for Windows.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #5 on: 2010 January 12 20:49:29 »
I just tried this on Vista x64. It seems that longer tooltips first get truncated and then when you move the mouse to another and back the full tooltip is show. That hardly looks like a css problem but rather an issue with the renderer.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #6 on: 2010 January 12 23:55:46 »
Hi Sander,

I hadn't really been following this thread, but I have just tried it on my Vista64 machine, and I see the same behaviour as you just described

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #7 on: 2010 January 13 05:53:16 »
Thanks Niall for trying and posting!
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #8 on: 2010 January 13 05:58:11 »
Hi Sander,

I had hoped to attach a tiny video clip of the strange behaviour - but I just ran out of time this morning. If anybody needs/want is, let me know and I can email it (it should be very small, as I only captured a few seconds, and only from the area of interest).

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #9 on: 2010 January 13 12:24:15 »
On my test machines, this problem never happens on the ObjectBrowser (Script Editor window), as you've reported.

It does happen on combo boxes, and on all platforms. For example, compare the tool-tip window if you place the cursor on a combo box and on its accompanying text label. It seems a Qt bug, and is also present in Qt 4.6 (latest version), so there's little I can do to fix it right now. I'll try to investigate it more though.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #10 on: 2010 January 13 14:11:48 »
This is as much an experiment in using embedded SWF within the Forum as it is a demonstration of the truncation that Sander and I have been experiencing.

http://www.pixinsight.com/nsaunders/ToolTipTruncation.swf

If it doesn't work, this reply will either be deleted, modified so that it does work - or left incomplete because I couldn't get it to work !!

Cheers,

[Edit - well, it seemed to work  ;D]
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #11 on: 2010 January 13 14:55:22 »
Well it wasn't embedded for me but clicking on the link worked fine. Exactly what I was seeing :)

I'm sure Juan will see it to on a clean PI install on windows.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Mouseover 'tooltips' for Java editor class browser are truncated
« Reply #12 on: 2010 January 13 15:07:00 »
Well, 'embedded' is only 'my' description !

I used the "Insert Flash" codes above, and simply pasted in the URL of where I had placed the SWF file.

When I click on the link a new window opens, and the SWF is playing. OK, there are no user controls, and the movie just loops continuously until the window is closed, but it seems reasonable for very 'simplistic' clips like this - I can certainly see where it 'could' help explain something with more clarity that one of my usual typographical diatribes  ::)

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC