PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Petrus Vorster on August 05, 2015, 02:15:02 PM

Title: Creating a Callout box
Post by: Petrus Vorster on August 05, 2015, 02:15:02 PM
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?
Title: Re: Creating a Callout box
Post by: Wilko Verweij on August 11, 2015, 03:15:34 PM
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
Title: Re: Creating a Callout box
Post by: Petrus Vorster on August 11, 2015, 03:47:58 PM
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?