![]() |
ToolTip with InstallOptions
I read the plugin but didn't understand.
When ..FindWindow and ..GetDialogItem... :weird: uh,:confused: How did he find those numbers? (#32770 and 1016) Is it possible tooltip on buttons, text, combobox and so on? :rolleyes: |
1) Did you read the docs about those "numbers"?
2) Yes, is possible to add toottips to the common controls, just read the docs and follow the examples :D |
I read but there is nothing about them. There is only one example an no explanation. I,m talking about ToolTips.zip, NSIS plugin. Where are these docs ?
|
I discovered this, but only works after pressin or marking a box, it means, after an "abort" in Function LeaveCustom.
Function LeaveCustom ReadINIStr $1 "$exedir\m.ini" "Field 2" "HWND" ToolTips::Classic $1 "Tip" 0x00ffbbbb 0x00111111 "font" And, before touching anything ? |
Most probably you need to call ToolTips::Classic between MUI_INSTALLOPTIONS_INITDIALOG (or InstallOptions::InitDialog) and MUI_INSTALLOPTIONS_SHOW (or InstallOptions::Display).
You also need to get the HWND of the control using GetDlgItem rather than reading from the INI file. The control ID will be 1200 + field num - 1. -Stu |
Quote:
Let's start: From the tooltips readme doc: Quote:
PHP Code:
In this case 1016 is the control ID, taken from an external app, such as resource hacker. |
Joel, the last param (font_size_px) does not make any difference in the font if I change it to 36, 100 or even 900. Am I missing something? Thanks.
|
Thanks for patience but:
I downloaded Tooltips.zip but there is no *.doc inside. The two micro examples and the micro txt are not illuminatives. Where each command go? (function, section, wich?) Where goes ToolTips::Classic hwndControl "Tooltip_body"...? Thanks tip resource tuner. Ok. I,ve read FindWindow & GetDlgItem about 1000 times last 3 years but never could make it work or I never understood. Still don,t. Font: Works, but the smallest size is still too big (no problem). Always classic, never Modern UI. |
OK FINISH !!!
There it goes: Function ShowCustom InstallOptions::initDialog /NOUNLOAD "$exedir\m.ini" Pop $hwnd FindWindow $3 "#32770" "" $HWNDPARENT GetDlgItem $1 $3 1201 ;Field 2 here ToolTips::Classic $1 "Tip.." 0x00ffeeee "0x00000000" system InstallOptions::show Pop $0 FunctionEnd Thanks Afrow UK Thanks Joel |
Quote:
I'll fix it today. Sorry, for the delay, I was out of my PC. Joel needs time to be with the ladies :p |
| All times are GMT. The time now is 04:59. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.