A little MouseHover Library (last update: August 10, 2016)
I am sorry for the delay, but a code is missing in the OP.
How do we duplicate that procedure?
Code: Select all
EndHoverEvents(WindowID(0))
- Kwai chang caine
- Always Here
- Posts: 5353
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: A little MouseHover Library (last update: June 17, 2007)
Thanks to SROD i use this great mouse hook
But i don't know how can i stop it ??? :roll:
Is it possible to create this function please ??
But i don't know how can i stop it ??? :roll:
Is it possible to create this function please ??
Code: Select all
EndHoverEvents(WindowID(0))
The happiness is a road...
Not a destination
Not a destination
Re: A little MouseHover Library (last update: June 17, 2007)
Mr Maestro,netmaestro wrote: Update June 17, 2007: HoverGadgets Library Installer available at http://www.networkmaestro.com/HoverGadg ... taller.exe
Do you remember if the installer included any code changes, and if so, is it available at your new site? Or if you've created something better?
cheers
- netmaestro
- PureBasic Bullfrog
- Posts: 8433
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: A little MouseHover Library (last update: June 17, 2007)
There seems to be some problems with this code on Win7 and/or with the latest compiler. In the years since I wrote this I've come up with a couple of ideas to make it a lot cleaner and generally better but I haven't really found the time to get back to it. Such is the case for the next couple of days too but on the weekend I'm going to tackle it and implement some of these ideas. There should be an update by Sunday afternoon at the latest and hopefully we can see some improvements.
BERESHEIT
Re: A little MouseHover Library (last update: June 17, 2007)
I appreciate it, but don't go out of your way if you've got more pressing items. I'm already more than enough in your debt
cheers
cheers
- netmaestro
- PureBasic Bullfrog
- Posts: 8433
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: A little MouseHover Library (last update: January 30, 20
When I saw that this doesn't work under Win7 I had a good look at the code and I really couldn't believe I wrote it. It really was bad. Anyway, I rewrote the library with a more sensible approach and dropped the idea of automatically covering all gadgets in an application with hover events. Now if you want a gadget to get hover events, you specify it. Some gadgets make sense to receive hover events and some don't. Code is updated in the first post. Old code is replaced, if you liked it and want to keep it, you're welcome to it. Just say you wrote it please..
BERESHEIT
Re: A little MouseHover Library (last update: January 30, 20
Sorry, but you're already listed as a prime contributor on the program web site. Whenever there's a bug report either you or srod receive credit.netmaestro wrote:Just say you wrote it please..
Thanks again for another contribution.
cheers
Re: A little MouseHover Library (last update: January 30, 20
Thanks netmaestro for the update and the demo code.
It looks and works nicely.
It looks and works nicely.
- Fangbeast
- PureBasic Protozoa
- Posts: 4749
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
Re: A little MouseHover Library (last update: January 30, 20
Thanks for this library Netmaestro, it has helped crystallise a project that I couldn't continue with otherwise.
Amateur Radio, D-STAR/VK3HAF
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: A little MouseHover Library (last update: January 30, 20
...The title is misleading, this is a Mighty Mouse Hover Library!
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: A little MouseHover Library (last update: January 30, 20
Great bit of code - thank you.
I wanted to use it to change the layout if they moused over my rmchart -- I didn't have the handle of the chart; but I figured doing it for the container would work -- but it didn't. Any way to get the code to work for a container of another object?
ie:
window
container
rmchart
I set the mouseover for the container - but the chart takes up 100% of the space of the container. The hover stuff doesn't fire; until I slide the chart out of the way.... then it works.
Thank you for your code - very helpful.
-j
I wanted to use it to change the layout if they moused over my rmchart -- I didn't have the handle of the chart; but I figured doing it for the container would work -- but it didn't. Any way to get the code to work for a container of another object?
ie:
window
container
rmchart
I set the mouseover for the container - but the chart takes up 100% of the space of the container. The hover stuff doesn't fire; until I slide the chart out of the way.... then it works.
Thank you for your code - very helpful.
-j
- netmaestro
- PureBasic Bullfrog
- Posts: 8433
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: A little MouseHover Library (last update: August 10, 201
Significant update today on this library. Previously, if you had a button in a container and both gadgets were added to the hover list, you could only have one "hot" gadget at a time. For example, if you took your mousepointer into the container and the container was larger than the button, if you then surfed over the button, the container would fire an exit message and the button would fire entry. Not so anymore. If you have several layers of containers and gadgets and all of them are set to detect hovers, all containing gadgets will show as still "hot" as you drill deeper into the stack. So, let's consider a simple example. Container1 holds container2, which in turn holds button1. Moving from the outside in, the messages will fire as follows:
Entered container1
Entered container2
Entered button1
And then moving back out:
Left button1
Left container2
Left container1
This update makes the library quite a bit more robust as you might want to show visual feedback to users of the nested gadgets the mouse is currently inside.
Changes to hover based on keyboard entry can't break this library as it's based on a hook, not mousemoves. (panel example included, push the button and use the TAB and then right-arrow key to move to the next panel tab and all current hovers are cancelled. If the cursor lands on the button on tab 2, entry is fired. All without touching the mouse.)
Entered container1
Entered container2
Entered button1
And then moving back out:
Left button1
Left container2
Left container1
This update makes the library quite a bit more robust as you might want to show visual feedback to users of the nested gadgets the mouse is currently inside.
Changes to hover based on keyboard entry can't break this library as it's based on a hook, not mousemoves. (panel example included, push the button and use the TAB and then right-arrow key to move to the next panel tab and all current hovers are cancelled. If the cursor lands on the button on tab 2, entry is fired. All without touching the mouse.)
BERESHEIT
Re: A little MouseHover Library (last update: August 10, 201
This is why it is so?
And it was impossible to write like that?
Code: Select all
Procedure CallWndProc(nCode, wParam, lParam)
If nCode < 0
result = CallNextHookEx_(0, nCode, wParam, lParam)
EndIf
;
; code
;
If ncode<0
ProcedureReturn result
Else
ProcedureReturn CallNextHookEx_(0, nCode, wParam, lParam)
EndIf
EndProcedure
Code: Select all
Procedure CallWndProc(nCode, wParam, lParam)
;
; code
;
ProcedureReturn CallNextHookEx_(0, nCode, wParam, lParam)
EndProcedure
- netmaestro
- PureBasic Bullfrog
- Posts: 8433
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: A little MouseHover Library (last update: August 10, 201
Actually that should be fine as CallNextHookEx would be called in all cases, including when nCode<0. iirc I took the doc to mean it needed to be called immediately if nCode<0. I'll change it and see if there's any problem but probably not. Thanks mestnyi!
BERESHEIT