forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scroll wheel support in sdbg

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Suggestions
View previous topic :: View next topic  
Author Message
acw



Joined: 04 Nov 2005
Posts: 165
Location: Darkest Devon

PostPosted: Fri Dec 08, 2006 10:32 am    Post subject: Scroll wheel support in sdbg Reply with quote

The title says it all - it would be really really nice if sdbg supported scrolling using the mouse scroll wheel.

Alan
Back to top
View user's profile Send private message Visit poster's website
brucebowler
Guest





PostPosted: Tue Jul 03, 2007 4:15 pm    Post subject: Reply with quote

It's been a while since Alan posted this request...

I second the request. It's a major "missing feature"...
Back to top
JohnCampbell



Joined: 16 Feb 2006
Posts: 2554
Location: Sydney

PostPosted: Thu Jul 05, 2007 1:25 am    Post subject: Reply with quote

A third vote. It would be good if %gr call-back and get_mouse_info@ included information of the scroll wheel operation. I've tried it with full_mouse_input and the scroll button appears as a mouse move in the Y direction.
Is there any more information on how to use the scroll wheel in this way ?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Thu Jul 05, 2007 9:35 am    Post subject: Reply with quote

Here is a summary of the current situation as I understand it.

WM_MOUSEWHEEL is implemented in %eb as evidenced in the old Plato2.
It is also implemented in %ht but nowhere else in ClearWin+ that I can see.

SDBG is built on the basis of %tx which does not respond to WM_MOUSEWHEEL at the moment. Off hand I do not know how much work would be needed to add this feature to ClearWin+.

I think that it would probably be a simple matter to add WM_MOUSEWHEEL to the %gr feedback and I will add this to the wishlist.

get_mouse_info@ reports the current mouse position so, on the face of it, does not bear any direct relation to the WM_MOUSEWHEEL "event" unless and until it is converted into a scrolling action. There again, the mouse position is not changed by a mouse wheel scrolling action so get_mouse_info@ does not seem to be related to the mouse wheel.

You can get at WM_MOUSEWHEEL directly by implementing %mg for this "event".
Back to top
View user's profile Send private message AIM Address
JohnCampbell



Joined: 16 Feb 2006
Posts: 2554
Location: Sydney

PostPosted: Fri Jul 06, 2007 12:06 am    Post subject: Reply with quote

Paul,

With i = winio@ ('%`^gr[grey, rgb_colours, full_mouse_input]&', ...
I appeared to get the Y value changing with the scroll wheel, but that may have been me moving the mouse as I tried to hold it still. The X value and the mouse icon did not appear to move.

It would be good to trap the clicking and direction of the wheel in %gr.

John
Back to top
View user's profile Send private message
Wilfried Linder



Joined: 14 Nov 2007
Posts: 314
Location: Düsseldorf, Germany

PostPosted: Wed Nov 21, 2007 1:07 pm    Post subject: Reply with quote

Hi,

I'm not sure if I understood the question, but here is some code to get information about the mouse wheel:

INTEGER FUNCTION CB_MOUSE_WHEEL()

USE MSWIN
integer*4 zDelta,WPARAM

CB_MOUSE_WHEEL = 3

WPARAM = CLEARWIN_INFO@('MESSAGE_WPARAM')
zDelta = HIWORD@(WPARAM)

c ... use zDelta for further calculations like zoom in a graphics window

end

Maybe this can help.

Regards,
Wilfried
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Suggestions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group