Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
116 user(s) are online (109 user(s) are browsing Forums)

Members: 0
Guests: 116

more...

Support us!

Headlines

 
  Register To Post  

listbrowser and mousewheel
Just popping in
Just popping in


See User information
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.

Go to top
Re: listbrowser and mousewheel
Quite a regular
Quite a regular


See User information
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
Go to top
Re: listbrowser and mousewheel
Home away from home
Home away from home


See User information
@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.



Go to top
Re: listbrowser and mousewheel
Just popping in
Just popping in


See User information
Got it. Thanks

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

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project