Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have tried using one of the solution I found over Code Project where I found the following function but placing this function in my installscript doesn't help. I am not sure whether I would have to write code in C# and then call the dll from my installscript.

Any kind of help will be highly appreciated.

What I have tried:

This is the function I wrote in one of the installscript file (particular to one of my custom dialog where I want the balloon for an edit control).

#define EM_SHOWBALLOONTIP 0x1503
#define EM_HIDEBALLOONTIP 0x1504
#define TTI_NONE 0
#define TTI_INFO 1
#define CP_ACP 0 // default to ANSI code page
#define MB_PRECOMPOSED 0x00000001 // use precomposed chars

typedef EDITBALLOONTIP
begin
number cbStruct;
number pszTitle;
number pszText;
number ttiIcon;
end;

prototype number ShowBalloonTip(HWND,string,string);
function number ShowBalloonTip(hWndCtrl, szTitle, szMsg)
EDITBALLOONTIP baloon;
string szBalTitleBuf[MAX_PATH], szBalTextBuf[MAX_PATH];
pointer pBalTitleBuf, pBalTextBuf;
begin
pBalTextBuf = &szBalTextBuf;
pBalTitleBuf = &szBalTitleBuf;

MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED,&szMsg,
StrLengthChars(szMsg)+1, pBalTextBuf, MAX_PATH);
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED,&szTitle,
StrLengthChars(szTitle)+1, pBalTitleBuf, MAX_PATH);

baloon.cbStruct = SizeOf(baloon);
baloon.pszText = pBalTextBuf;
baloon.pszTitle = pBalTitleBuf;
baloon.ttiIcon = TTI_INFO;

return SendMessage(hWndCtrl,EM_SHOWBALLOONTIP,0,&baloon);
end;
Posted
Comments
[no name] 9-Nov-16 11:53am    
Help with what? InstallShield has forums where you can ask questions about how to use their products. You will probably have to supply a better description of a problem than "doesn't help". They wouldn't know what that means anymore than we do.
Member 12841589 9-Nov-16 13:26pm    
Hi There,

Thank you for your reply. I am not really sure how to implement this, I have found a code (mentioned above) but when I place this function in my installscript and call it for one of the edit field, balloon is not being shown. Nothing is happening, I am not getting any kind of error or anything.
[no name] 9-Nov-16 14:30pm    
I am absolutely positively sure that InstallShield has a debugger, learn to use it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900