Jump to content

Recommended Posts

Posted (edited)

Hi everyone!

I often see questions like this: "How i can change the tooltip text and background colors?", "How i can change the tooltip font size and font name?", "How to create a custom tooltip?"

And i became interesting about possibility to create a custom tooltip. This possible. :)

Edit:

Fixed 2 bugs

ToolTip_UDF.zip

Edited by rasim
Posted

GaryFrost

  Quote

Could use some examples for the UDFs that are already included with AutoIt.

Yes, but UDF from the help file don`t contain examples. :)

Jango

  Quote

Is it possible to do rounded tooltip ?

Baloon style? Yes, use a _ToolTip_SetBaloonStyle() function to set a baloon tip. :)
Posted (edited)

GaryFrost

  Quote

Must be an echo or I don't speak plain enough English.

Ok. Please show me understandable example from GuiToolTip.au3 or from the help file. If you think that my UDF is wrong and unnecessary - this is your right. Instead of sarcasm you can show me errors in my code or give advice about improving code. Thank you! Edited by rasim
Posted

  rasim said:

GaryFrost

Ok. Please show me understandable example from GuiToolTip.au3 or from the help file. If you think that my UDF is wrong and unnecessary - this is your right. Instead of sarcasm you can show me errors in my code or give advice about improving code. Thank you!

All I was stating (which you repeated, thus the sarcasm) was that the UDFs are already there in a include file, they just need examples.

If you want to re-write them again thats up to you. Was just trying to save you time.

There are plenty of UDFs that don't have examples that anyone could contribute examples for.

I've contributed plenty of examples/UDFs and at the moment not planning on creating anymore.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Posted

GaryFrost

  Quote

All I was stating (which you repeated, thus the sarcasm) was that the UDFs are already there in a include file, they just need examples.

:) Im sorry, has not understood your reply it is correctly.

  Quote

If you want to re-write them again thats up to you. Was just trying to save you time.

Yes, you are right, but i don`t know about (GuiToolTip.au3) UDF. :)

  Quote

I've contributed plenty of examples/UDFs and at the moment not planning on creating anymore.

Ok. Thank you for your time and your work. Sorry again. :)
  • 3 months later...
Posted

@rasim

  Quote

Fixed 2 bugs

Nope...

_ToolTip_SetBkColor($Input, "0xFF0000")

This one not working properly.

You need to convert to number before the _RGB2BGR() function:

Func _ToolTip_SetTextColor($hControl, $sColor)
    If Not $sColor Then Return SetError(1, 0, 0)
    $sColor = Number($sColor)
    
    If $hToolTip = False Then $hToolTip = _ToolTip_Create()
    If Not IsHWnd($hControl) Then $hControl = GUICtrlGetHandle($hControl)
    
    Local $iElement = _FindControl($hControl)
    $aTextColor[$iElement] = _RGB2BGR($sColor)
EndFunc

:)

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • 1 year later...
Posted

Maybe this link will be useful to create more complex ToolTip control.

See there about two advanced messages:

# TTM_SETTOOLINFO: Associate the specified tool with the specified TOOLINFO structure.

# TTM_GETTOOLINFO: Gets the TOOLINFO structure associated with the specified tool.

The point of world view

  • 5 years later...
Posted

I try to test this UDF. I got error message when run the example: line 9 in ToolTip_UDF : Can not redeclare a constat

I deleted this line, seems work now and i like it.

My question is how can i use _ToolTip_SetBaloonStyle() function.

I got another error messages when i tryed to use : variable used without being declared

The variable is : $GWL_STYLE

I think this is a great UDF, it's worth to update

Posted (edited)

Comment out line 9 (Global Const $TTDT_AUTOPOP = 2) and add #include <WinAPIConstants.au3> somewhere at the top and it should work.

Btw, rasim is not active since 02/2009!

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...