• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Design & Development v
« Previous 1 … 6 7 8 9 10 11 Next »
Micheus ... Selection Groups scroll vs Geometry Graph Scroll

 
  • 0 Vote(s) - 0 Average
Micheus ... Selection Groups scroll vs Geometry Graph Scroll

ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#1
12-03-2014, 11:06 PM (This post was last modified: 12-04-2014, 12:06 AM by ggaliens.)
Here's my silly hack to make Selection Groups scrolling a bit more delicate when neeed. It would be better to add the thumb-region handling that is supported by geometry graph.

Would you know how to do it right Micheus ? Or more important ... would you have a go at finding right solution ?

Code:
event(PAGE_UP_DOWN, Ost) when PAGE_UP_DOWN == scroll_page_up orelse PAGE_UP_DOWN == scroll_page_down->
    Mod = sdl_keyboard:getModState(),
    case {PAGE_UP_DOWN, Mod} of
         {scroll_page_up, 0}   ->  zoom_step(-lines(Ost), Ost);
         {scroll_page_down, 0} ->  zoom_step(lines(Ost), Ost);
         {scroll_page_up, _}   ->  zoom_step(-1, Ost);
         {scroll_page_down, _} ->  zoom_step(1, Ost)
    end;

I was too lazy to do a better compare of the wpc_sel_win events to wings_shape events.

Maybe slightly better idea ...

Code:
event(#keyboard{scancode=72},Ost) ->
    zoom_step(-1, Ost);
event(#keyboard{scancode=80},Ost) ->
    zoom_step(1, Ost);
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Micheus ... Selection Groups scroll vs Geometry Graph Scroll - by ggaliens - 12-03-2014, 11:06 PM
RE: Micheus ... Selection Groups scroll vs Geometry Graph Scroll - by micheus - 12-04-2014, 02:36 AM
RE: Micheus ... Selection Groups scroll vs Geometry Graph Scroll - by ggaliens - 12-04-2014, 03:51 PM
RE: Micheus ... Selection Groups scroll vs Geometry Graph Scroll - by ggaliens - 12-05-2014, 01:07 AM
RE: Micheus ... Selection Groups scroll vs Geometry Graph Scroll - by micheus - 12-05-2014, 01:39 AM
RE: Micheus ... Selection Groups scroll vs Geometry Graph Scroll - by ggaliens - 12-05-2014, 06:43 PM
RE: Micheus ... Selection Groups scroll vs Geometry Graph Scroll - by micheus - 12-05-2014, 06:58 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode