Sign in to follow this  
Followers 0
Chimp

how to confine a ToolTip, to monitor's borders?

4 posts in this topic

Hello

according to autoit help, about ToolTip I do not understand this point:
options: 4 = Force the tooltip to always be visible confining it to monitor borders if necessary.

but when I try this code

ToolTip ( "Hi, I am a ToolTip"&@CRLF&@crlf&"Good morning!" , Default, Default, "Title" , 2 , 4 )

Sleep(10000)

the ToolTip remains fixed always in the same position,

what do it means " confining it to monitor borders if necessary."? Is it done automatically or do I have to move it by myself?

thanks for the help


small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites



This simply means that the tooltip will always be visible even when you use something like this:

ToolTip("Hi, I am a ToolTip" & @CRLF & @CRLF & "Good morning!", 999999999999, 1000000, "Title", 2, 4)
Sleep(10000)

Test it with and without option 4.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

if the coordinate is out of the monitor bound then even the tooltip would display in the monitor region


My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

ok, ... now is clear

thanks both water and PhoenixXL for the quick answer

Edited by Pincopanco

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

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  
Followers 0