Using event handlers - (EasyVENT version 3.2)

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

On NT4 if you EasyVent the #OnDragItemStart message on a tree (it may happen on other gadgets I haven't checked) then the scroll bars (both H & V) for the gadget don't work unless double-clicked. :(

I've checked and when you click on the scrollbar the #OnDragItemStart message is called.

The #OnDragItemStart message performs as it should in all other respects on NT4. :)

Any ideas on how to fix this?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Bloody NT 4!!! :)

Sounds like either a mouse capture issue or one stemming from the fact that, at certain points related to the #OnDragItemStart process, default window's processing is not called.

Try this first :

change the line

Code: Select all

If GetProp_(hwnd,"EVENT_"+Str(#OnDragItemStart))
to

Code: Select all

If GetProp_(hwnd,"EVENT_"+Str(#OnDragItemStart)) And uMsg = #WM_LBUTTONDOWN
I may look like a mule, but I'm not a complete ass.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Looks like it's to do with themes, not just NT4 - it happens on anything where themes are disabled. :(

But....

Your fixed worked!!! :D
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Which confirms the mouse capture theory!

The problem then is in my extending the mouse messages to include their non-client counterparts.

Can you double check the fix if you don't mind.

I don't want to release a fix if there's still a chance that things are still amis!

Thanks.
I may look like a mule, but I'm not a complete ass.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I've checked it on NT4, XP (with & without themes), 98 SE, 95, Me, 2K & Vista!

I didn't just check that the gadget scrollbar worked fine, I also did a check that the drag/drop was also working ok. I only checked trees.

Looks fixed. :)

You should do what I do: I have a machine with virtual PC and all the different types of windows setup (xp with & without themes). It's pretty easy to check things out then. The latest Virtual PC is free from Microsoft.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

DoubleDutch wrote:You should do what I do: I have a machine with virtual PC and all the different types of windows setup (xp with & without themes). It's pretty easy to check things out then. The latest Virtual PC is free from Microsoft.
Yes, but that would then mean I'd have no excuse for not performing all the checks myself! This way I can get others do do all the leg work (but mum's the word!) :wink:

Thanks, I'll upload the fix right now.
I may look like a mule, but I'm not a complete ass.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

This way I can get others do do all the leg work
:twisted:

:lol:
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

14th October 2007. (Purebasic 4.1 onwards). Minor bug fix - version 3.1.1.
Version 3.1.1 fixes a drag / drop problem which would cause problems on machines running NT 4. Thanks to DoubleDutch.

Please see the first post for the download link.
I may look like a mule, but I'm not a complete ass.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

srod wrote:14th October 2007. (Purebasic 4.1 onwards). Minor bug fix - version 3.1.1.
Version 3.1.1 fixes a drag / drop problem which would cause problems on machines running NT 4. Thanks to DoubleDutch.

Please see the first post for the download link.
404 error here.
Link was http://www.purecoder.net/EasyVENT-v3.1.zip
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

No problem here. The link in the first post now gives : www.purecoder.net/EasyVENT-v3.1.1.zip

Try refreshing your cache etc.
I may look like a mule, but I'm not a complete ass.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

srod wrote:No problem here. The link in the first post now gives : www.purecoder.net/EasyVENT-v3.1.1.zip
Thanks, works now.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Version 3.1.1 fixes a drag / drop problem which would cause problems on machines running NT 4
Slightly inaccurate: The problem occured on ALL systems when themes were disabled (which is the default on pre-XP because there are no such things as themes on pre-XP).
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Post by kinglestat »

I have finally given this a look
really nice piece of work
incredibly handy and lets you keep tidy and modular
I'm impressed and thanks!
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

You're welcome Kinglestat. :)
I may look like a mule, but I'm not a complete ass.
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

As always, wonderful job! :D

*sends beer*
Post Reply