Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
59 user(s) are online (48 user(s) are browsing Forums)

Members: 2
Guests: 57

eliyahu, samo79, more...
Support us!
Recent OS4 Files
OS4Depot.net





listbrowser and mousewheel
Just popping in
Joined:
2015/9/28 23:42
From Bettendorf, IA, USA
Posts: 213
The AutoDoc says it reacts to mousewheel events. My program doesn't. Is there a setting I need? Says doesn't need a hook anymore.

I am thinking it may be because I make the gadget separately, not in the initial layout. I add it later if it is needed or not.

   Report Go to top

Re: listbrowser and mousewheel
Quite a regular
Joined:
2006/12/2 0:35
From Sydney
Posts: 685
I am using a simple two-column LB in a temporary window opened for that purpose. I didn't do anything special to enable the mousewheel, but it works OK.

I'm not adding gadgets in real time, though. Perhaps you have to close the window and reopen it after adding the LB gadget?

_________________
cheers
tony
   Report Go to top

Re: listbrowser and mousewheel
Home away from home
Joined:
2006/12/4 23:15
Posts: 2126
@mritter0

Did you add IDCMP_EXTENDEDMOUSE to the WA_IDCMP window tag? If you have an IDCMP_Hook did you add WINDOW_BuiltinScroll,TRUE? (IMHO you might as well add this either way to be certain!).

If you read the listbrowser_gc autodoc it refers you to the window_cl autodoc where it says:

Quote:


SCROLLWHEEL EVENTS
From 52.3, window.class can now pass mouse scrollwheel events
on to all gadgets part of the window. Due to the previous way
of implementing these events, window.class now looks to see if
an IDCMP Hook has been installed via tags, as this is the most
common way to implement scrollwheel events. If a hook is not
installed, then the built-in event handling is switched on. In
order to support this functionality, omit the IDCMP hook and
specify the IDCMP_EXTENDEDMOUSE flag in WA_IDCMP, everything
will be automatic from there on. If you are using a hook for
other purposes, the scrollwheel event handling can be
explicitly enabled by setting the WINDOW_BuiltInScroll tag to
TRUE at window creation time.



_________________
Blender For OS4.x : Blues : Walker Broad
   Report Go to top

Re: listbrowser and mousewheel
Just popping in
Joined:
2015/9/28 23:42
From Bettendorf, IA, USA
Posts: 213
Got it. Thanks

_________________
Workbench Explorer - A better way to browse drawers
   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project