Jump to content
Sign in to follow this  
Borje

ToolTip question

Recommended Posts

Borje

Is that possible to have a tooltip to to be shown in a same place in differnts resolutions?

Example: 1280 x 1024 or 1280 x 768 and have the tooltip in the same place.

Or what is the best to do?

Share this post


Link to post
Share on other sites
picea892

Is that possible to have a tooltip to to be shown in a same place in differnts resolutions?

Example: 1280 x 1024 or 1280 x 768 and have the tooltip in the same place.

Or what is the best to do?

ToolTip("hi there",@DesktopWidth-100,@DesktopHeight-100,"")

Share this post


Link to post
Share on other sites
Borje

Thank you picea892 I would test this...

Share this post


Link to post
Share on other sites
Mat

Correct me if I'm wrong, but 100 is by definition a constant, you actually want it to be done purely with macroes to get the right position, eg, set your monitor to 200 x 200 and use ther code, then switch to 1280 x 1024, you will get different places.

What It should be

$Pos_Width = @DesktopWidth - @DesktopWidth/10

and

$Pos_Height = @DesktopHeight - @DesktopHeight/10

the math functions may not work, but play around with using just macros

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.