PointOut() command

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

PointOut() command

Post by netmaestro »

I made a library command called PointOut. What it does is gently point something out without being insistent (not modal). It is useful for showing gadget-specific help tips, advising of a new status, describing contents of pictures, really the possibilities are endless. Here's a small demo showing some right-click help:

http://www.networkmaestro.com/testpointout.exe

I don't know if anyone beyond me is going to be interested in it, but if you want it you're welcome to it:

http://www.networkmaestro.com/PointOut.zip

Usage: PointOut(WindowID, GadgetID, text.s [,timeoutsecs] )

It will point at the gadget you specify, located on the WindowID. Timeout is optional, there is a close link on it.
BERESHEIT
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

I'm sure I'll find a use for it, thanks.

p.s. nice picture :lol:
Amundo
Enthusiast
Enthusiast
Posts: 200
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Post by Amundo »

Very nice, netmaestro, thanks for sharing.

Is this specific to any Win versions, or will (might) it work with all?
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

It uses gdiplus, so on XP/Vista it'll be no problem, but for other OS's you'd have to distribute gdiplus.dll with your app. It's 1.6 mb and freely distributable.
BERESHEIT
Max
User
User
Posts: 67
Joined: Thu Nov 30, 2006 4:57 pm
Location: I long for the absolute loneliness of the death

Post by Max »

HEY, netmaestro, do you never sleep?
:shock: :o
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Nice idea - but I wonder why it wants to connect to your web site?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Web site? There's no network stuff in there at all.

Wait - you mean the demo program! It pulls the granny picture .gif off my server instead of using includebinary for size reasons.
BERESHEIT
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Right - the granny makes sense. I didn't see that until I let the firewall connect. Thanks.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Code: Select all

gif$="http://www.networkmaestro.com/gramma.gif"
url$ = "about:<html><body scroll='no' leftmargin='0' topmargin='0'><img src='"+gif$+"'></img></body></html>"
ContainerGadget(4,210,110,204,235,#PB_Container_Double)
WebGadget(3, 0, 0, 200, 232, url$ )
BERESHEIT
Post Reply