Creating a Callout box

Started by Petrus Vorster, August 05, 2015, 02:15:02 PM

Previous topic - Next topic

Petrus Vorster

Hi all

I am trying to create a Call-out box, almost like a tooltip, but bigger with an image, close button and some information.
the idea is that when you enter an employee number, the little Pop-up comes up with perhaps a line to the textbox, with the employee picture and some details.
It must not interfere with the rest of the form and the user should be able to continue capturing other info, close it, or just ignore it.
I want it to disappear after a few seconds (obviously a timer), but how do you make the actual thing look like a callout with perhaps a shadow below to look very professional?
Something like this perhaps (see the image)
Had anyone created something like this in projects before?
-Regards
Peter

Wilko Verweij

Hi Petrus,
Using infotip you can do many of the things you want except (AFAIK) for the picture. See attachment.
Code looks like this:
      hTT = Tooltip_Add(WindowHandle, NewText$)
      Tooltip_SetTitle (hTT, %TTI_INFO, "Title in Bold")
      ToolTip_Popup(hTT)

Maybe it is possible to extend this with your own picture. I never tried that.
Wilko

Petrus Vorster

Thanks Wilko!

I will play around with this a bit!
I got the idea once from something that looked like a tooltip in another program, but it had features like borders, images etc.
Might have been a small form without borders with a custom line drawing perhaps?
-Regards
Peter