Menu

#5 Tooltips are cropped at screen edge

v0.2.1.1
open-later
David R
Tree View (7)
1
2006-09-12
2006-09-03
No

We are using remote commands to actually access nodes
behind a gateway node. When PSM is located at the right
edge of the screen and the tooltips are shown, they are
not displayed in full, but rather cropped at the edge
of the screen. The tooltip position should be
calculated depending on the size of the tooltip box, so
the whole box (if it fits to screen) is visible.

To reproduce:
1) Create a session with a remote command (approx. 30
chars)
2) Put PSM to the right edge of your screen
3) Hover of the session and let the tooltip come up

Expected behaviour:
The tooltip is not cropped

Discussion

  • David R

    David R - 2006-09-03
    • assigned_to: nobody --> dmrpsm
    • milestone: --> v0.2.1.1
    • status: open --> pending
     
  • David R

    David R - 2006-09-03

    Logged In: YES
    user_id=1537429

    I've had a look at this and can't find any way of modifying
    the location of the tool tip.

    So my suggestions are:
    1) Leave it as it is
    2) Use the default tooltips on the treeview - this positions
    the tooltips correctly - but I lose the ability to set a
    delay on the tooltip.

    Could you do a checkout from
    https://svn.sourceforge.net/svnroot/puttysm/branches/fixes/0.2.1.1

    And let me know what you think?

    Or - let me know if you can find a way of fixing it to keep
    the delay and position the tip correctly?

    Many thanks
    David

     
  • Roland Lammel

    Roland Lammel - 2006-09-03

    Logged In: YES
    user_id=24042

    According to the C# description it should be possible (don't
    know if that's possible in .NET 2.0), I came accross this
    documenatation.

    http://windowssdk.msdn.microsoft.com/en-us/library/ms752368.aspx

    I'll build the branch later today for testing.

    Cheers

    +rl

     
  • Roland Lammel

    Roland Lammel - 2006-09-03
    • status: pending --> open
     
  • David R

    David R - 2006-09-03

    Logged In: YES
    user_id=1537429

    Hi Roland

    I think that link refers to WinFX development ( Vista ) and
    isn't available in vanilla .NET 2.0

    Let me know how you get on with the branch

    Regards
    David

     
  • David R

    David R - 2006-09-03
    • status: open --> pending
     
  • Nobody/Anonymous

    Logged In: NO

    Right, the first link was .net 3.0 only. For 2.0 it seems
    the only chance to have it drawn as needed is to use the
    ownerdraw flag and define an own draw method.

    http://msdn2.microsoft.com/en-us/library/system.windows.forms.tooltip.ownerdraw.aspx

    I tested the branch and it's working fine there, showing the
    full tooltip, but as stated immediate, so every mouseover
    shows a tooltip.

    Although that's not the best in usabilty (as some entries
    are hidden beneath the tooltip), I still prefer it this way
    for me, as most of my sessions have long remote commands,
    but I think that's not the common use case I'm refering too.

    So implemeting an own ownerdraw method might be the best way
    to resolve the problem (and be far more flexible on the
    layout of the tooltip)

    +rl

     
  • Roland Lammel

    Roland Lammel - 2006-09-10
    • status: pending --> open
     
  • Roland Lammel

    Roland Lammel - 2006-09-10

    Logged In: YES
    user_id=24042

    The feature may be pushed out until .net 3.0 is available,
    as everything is in their already. Just a few months down
    the road.

    .net 3.0 will als be available for WinXP, as most companies
    haven't even picked up on .net 2.0 it might be an option.

    Otherwise the ownerdraw method must be used.

    +rl

     
  • David R

    David R - 2006-09-12
    • priority: 5 --> 1
    • status: open --> open-later
     
  • David R

    David R - 2006-09-12

    Logged In: YES
    user_id=1537429

    Hi Roland

    I have experimented with the ownerdraw feature but still
    can't find a way to move the tooltip, so I'm going to leave
    this one until .Net 3.0 - unless someone can supply me with
    a patch that can make it work.

    I think removing the delay in the tooltips will be too
    annoying for most people, so I won't implement that change
    in the next release.

    Sorry about this
    David

     

Log in to post a comment.