×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

advanced Balloon usage

advanced Balloon usage

advanced Balloon usage

(OP)
Given a small square control like a button or picture/image that have no image, text or borders, using tooltips on the form and balloons set to true, it seems that some controls are totally blocked by the balloon overlay (associated balloons appear to attach by default to either the lower center UP or top Center DOWN both of which obscure the control
) ... when I set Balloon to off, the Click or Double-Click is then accessible under the rectangular tooltip (the controls are much smaller then the balloon) ... I vaguely recall that in some older GUI models, Hidden controls like these were considered Hot Spots or Areas which one could assign attributes like Mouse over help

when moving the mouse around the control the balloon just automatically readjusts its anchor point on the control but still obscures the control

Without over-sizing these Controls, is there some way to:
- capture the click/double-click event regardless of someone clicking the balloon?
or
- explicitly define where to attach a balloon OR Balloon Orientation so it doesn't obscure the control?
being able to change a balloon anchor to top Center UP would work


RE: advanced Balloon usage

(OP)
The X and Y in tooltip.show("<Tip>",<control Name>, X, Y, <time in mSec>), is supposed to anchor the balloon to a position relative to the top left corner (0,0) of the control so using X = cint( <control>.height / 2 ) and Y = cint( <control>.width /2) one would expect this to work ... however ... while it does solve the problem described in my first post, it has another issue which is supposedly a known bug with Tooltip ... basically, dependent on the direction your mouse approaches a control, tooltip decides how to orient the balloon's origin ... one orientation is correct to the X, Y values provided ... THE OTHER IS TOTALLY OUT TO LUNCH ... it appears as though the balloon is flipped without anchoring the provided origin making the resulting balloon point to unrelated objects

Someone indicated this could be fixed by doing a tooltip.show("",<control Name>,0) ZERO isn't accepted in VP 2017 so I used 1 ... this doesn't appear to make any difference

Note sure is there is a patch or alternate control for this of if there is a way to overload the draw tooltip control (Object instantiation) more than likely the inner methods are protected?

Would be useful if MS were to provide another Optional Parameter to the Tooltip list called Orientation; Auto(default), Up_Left, Up_Right, Down_Left, Down_Right

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close