Middle mouse button.

Middle mouse button.

Postby CPhillips » Sun Nov 25, 2007 9:30 am

I am writing a tool that needs the middle mouse button but I am having trouble getting it to work.

The left mouse buttons all seem to work fine but onMButtonDown and onMButtonDoubleClick are never called and onMButtonUp is only called after a double click.

Has anyone got this to work. Is this a known bug?

Chris
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: Middle mouse button.

Postby MarcioAB » Mon Oct 20, 2008 1:56 am

Same problem here: Has anyone got this to work ? Or is this a known bug?
The code below shows correctly "L" and "R" in the "Ruby Console" but never shows "M". Instead "M" it triggers the "Orbit tool".

Thank you.

require 'sketchup.rb'
class Test1
def onMButtonDown(flags, x, y, view)
puts "M"
end
def onLButtonDown(flags, x, y, view)
puts "L"
end
def onRButtonDown(flags, x, y, view)
puts "R"
end
end

def call1
Sketchup.active_model.select_tool Test1.new
end
0

MarcioAB 
 

Re: Middle mouse button.

Postby ScottLininger » Wed Oct 22, 2008 12:19 am

Hi Chris,

This is a known issue to our team and should be addressed in a future maintenance release. I'm not aware of any workaround, unfortunately.
0
- Scott Lininger
SketchUp Software Engineer
Have you visited the Ruby API Docs?
User avatar
ScottLininger 
 

Re: Middle mouse button.

Postby Pixero » Wed Oct 22, 2008 8:37 am

ScottLininger wrote:Hi Chris,

This is a known issue to our team and should be addressed in a future maintenance release. I'm not aware of any workaround, unfortunately.


Sorry for hijacking the thread but I find this post rather discouraging.

Not a: In the next release.
Just a distant future service release. :(
I guess SU7 is further into the future than we all hope. :thumbd:

I can't understand why Google gives us nothing.
Just some brief overview of approx what and when to make us not lose all hope.
Google, we're starving!
I guess I'm not the only one to look into alternative softwares just because we dont get ANY info on when and what will be fixed in SU7.
End of hijack.
0
User avatar
Pixero 
 

Re: Middle mouse button.

Postby ScottLininger » Wed Oct 22, 2008 5:01 pm

Hey Jan,

I really wish I could be more clear, but we're talking about timelines that aren't set in stone. I'd rather be vague than be disappointing!

I understand your frustration. Let me restate my post to be: this bug has been fixed and will be available in our next release.
0
- Scott Lininger
SketchUp Software Engineer
Have you visited the Ruby API Docs?
User avatar
ScottLininger 
 

Re: Middle mouse button.

Postby tomasz » Wed Oct 22, 2008 6:40 pm

Thanks Scott for you answer. What we really miss here in the Ruby section is a professional feedback from SU Team regarding bugs and missing Ruby features, for example:
- ray casting bug - ray stops on hidden entities or entities on a hidden layers
- selection bug displaying also a geometry of a definition
- only first attribute restored when saved with SKM material
and few more...

I understand that not all have to be answered. I am just glad to see you here.
Tomasz
0

tomasz 
SU2TH & SU2KT Developer
 

Re: Middle mouse button.

Postby fredo6 » Wed Oct 22, 2008 7:25 pm

We can add this one (although I may have found a fix)
Web Dialog on Mac asynchronous .

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Middle mouse button.

Postby renderiza » Fri Sep 29, 2017 10:00 pm

Hi, I have the same problem in 2017...Is this going to be fixed?

Here is the test I did...
Code: Select all
class TestMiddleButton
  #Not Working...
  def onMButtonDown(flags, x, y, view)
    puts "onMButtonDown: flags = #{flags}"
    puts "                    x = #{x}"
    puts "                    y = #{y}"
    puts "                 view = #{view}"
  end
 
  #This one is working....
  def resume(view)
    puts "resume: view = #{view}"
  end
end

Sketchup.active_model.select_tool TestMiddleButton.new
0
User avatar
renderiza 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: No registered users and 10 guests

Visit our sponsors: