rasim Posted June 6, 2008 Share Posted June 6, 2008 (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 bugsToolTip_UDF.zip Edited September 17, 2008 by rasim kisstom 1 Link to comment Share on other sites More sharing options...
GaryFrost Posted June 6, 2008 Share Posted June 6, 2008 _GUIToolTip_xxxx Could use some examples for the UDFs that are already included with AutoIt. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Andreik Posted June 6, 2008 Share Posted June 6, 2008 Very useful UDF. Thanks rasim! Link to comment Share on other sites More sharing options...
Jango Posted June 6, 2008 Share Posted June 6, 2008 Is it possible to do rounded tooltip ? Link to comment Share on other sites More sharing options...
rasim Posted June 6, 2008 Author Share Posted June 6, 2008 GaryFrostCould use some examples for the UDFs that are already included with AutoIt.Yes, but UDF from the help file don`t contain examples. JangoIs it possible to do rounded tooltip ?Baloon style? Yes, use a _ToolTip_SetBaloonStyle() function to set a baloon tip. Link to comment Share on other sites More sharing options...
GaryFrost Posted June 6, 2008 Share Posted June 6, 2008 GaryFrostYes, but UDF from the help file don`t contain examples. JangoBaloon style? Yes, use a _ToolTip_SetBaloonStyle() function to set a baloon tip. Must be an echo or I don't speak plain enough English. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
rasim Posted June 7, 2008 Author Share Posted June 7, 2008 (edited) GaryFrostMust 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 June 7, 2008 by rasim Link to comment Share on other sites More sharing options...
GaryFrost Posted June 7, 2008 Share Posted June 7, 2008 GaryFrostOk. 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. Link to comment Share on other sites More sharing options...
rasim Posted June 7, 2008 Author Share Posted June 7, 2008 GaryFrostAll 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.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. 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. Link to comment Share on other sites More sharing options...
MrCreatoR Posted September 16, 2008 Share Posted September 16, 2008 @rasim Fixed 2 bugsNope... _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 Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
rasim Posted September 17, 2008 Author Share Posted September 17, 2008 Yes, you are right. Fixed. Updated first post. Thank you my friend! Link to comment Share on other sites More sharing options...
OmYcroN Posted February 17, 2010 Share Posted February 17, 2010 (edited) But how can i obtain this effect : Some Text : Another Text in the ToolTip ?! Edited February 17, 2010 by OmYcroN Link to comment Share on other sites More sharing options...
ValeryVal Posted February 17, 2010 Share Posted February 17, 2010 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 Link to comment Share on other sites More sharing options...
kisstom Posted June 2, 2015 Share Posted June 2, 2015 I try to test this UDF. I got error message when run the example: line 9 in ToolTip_UDF : Can not redeclare a constatI 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 declaredThe variable is : $GWL_STYLEI think this is a great UDF, it's worth to update Link to comment Share on other sites More sharing options...
UEZ Posted June 2, 2015 Share Posted June 2, 2015 (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 June 2, 2015 by UEZ kisstom 1 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
kisstom Posted June 2, 2015 Share Posted June 2, 2015 That's it!Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now