Double Line 2 (dline.rb update)
-
@jim said:
No one really responded when I asked the question about begin-rescue clause with start_operation. Probably a poor choice for a topic sentence on my part.
http://forums.sketchucation.com/viewtopic.php?f=180&t=22338Great minds think alike... fools never differ...
I agree that this begin-rescue way is less prone to error like your .version v. .version_number typo which screwed Pilou's v6... -
I can't get my Mac to print out the key code for a Tab?
using this: http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=205
-
@jim said:
I can't get my Mac to print out the key code for a Tab?
using this: http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=205
For
onKeyDown
it won't as Tab on Mac doesn't fire onKeyDown
But with onKeyUp it should return 9
BUT note that some locales/MacOSs can return 15 or even 48 for Tab...
I use this### Type 'keycode' in the Ruby Console... class TIG_KeyCode def activate @key="" puts "TIG's Non-Shortcut Keycode Reporter.\n" puts "Click in the Main Window outside of the" puts "Ruby Console then Press Non-Shortcut Keys..." end def onKeyDown(key, repeat, flags, view) @key=key.to_s puts "You Pressed Keycode = "+@key end def onKeyUp(key, repeat, flags, view) @key=key.to_s puts "You Released Keycode = "+@key end def deactivate(view) puts "You have pressed a Shortcut Key...\nExiting." return nil end end#class def keycode() Sketchup.active_model.select_tool(TIG_KeyCode.new) puts "" end#if
-
Well, that's rather a pain, not to mention bug-ish.
-
Is it reported?
-
@thomthom said:
Is it reported?
I have seen it discussed in various places - I've added it to the Tool's API notes...
-
@tig said:
I have seen it discussed in various places - I've added it to the Tool's API notes...
Link?
-
@jim said:
@tig said:
I have seen it discussed in various places - I've added it to the Tool's API notes...
Link?
http://code.google.com/apis/sketchup/docs/ourdoc/tool.html#commentWidgetTitle
-
I don't see any note.
-
Updated to fix Tab issue and correct start_operation for version 6+
-
@jim said:
@tig said:
I have seen it discussed in various places - I've added it to the Tool's API notes...
Link?
Y'know... I don't recall... BUT I have been avoiding using onKeyDown for TAB-key for MAC compatibility for ages by using onKeyUp key==9 etc... I even teach it to my students
I've search my usual haunts... and not found a link but there must be something somewhere as I can't have dreamed up the problem alone...
It seems to have been raised around here http://forums.sketchucation.com/viewtopic.php?p=273542#p273542 Jeff was also involved and Fredo? ... -
@jim said:
I don't see any note.
It's currently the first item in the User Notes list [~5 hours ago] - are your pages cached ? Try refreshing them...
-
@jim said:
Updated to fix Tab issue and correct start_operation for version 6+
http://forums.sketchucation.com/viewtopic.php?f=323&t=33875Jim
When you link back to something you need to get the link from the 'small-file-square' below the post's title that way you link to the very page, not the thread itself... http://forums.sketchucation.com/viewtopic.php?p=297720#p297720 works
http://forums.sketchucation.com/viewtopic.php?f=323&t=33875 does not. -
Of course it works. I'm not sure what problem you are having.
-
@jim said:
Of course it works. I'm not sure what problem you are having.
No - these link to different posts...
Click on the two I gave to see the difference.
If you have your posts sorted in chronological order it looks the same [at least initially] because the first post is at/near the top BUT if you sort in reverse order, like I do, so that the most recent posts are shown first then the initial download thread is not accessed by the click as it's by now on another page...
In passing... I not that you latest version of dline2 missed a 'start_operation' around line #287 so it's still not v6 compatible...
It's effectively defining 'double-click' to be taken as 'enter' - I note that ones 'Double ligne' and the others 'Double line' are also probably typos left over from Didier... -
Well, that different than "not working." I see your point.
-
@jim said:
Well, that different than "not working." I see your point.
It 'wasn't working' because it wasn't 'linking to the post' but rather linking directly to the thread itself which was somewhat redundant as you were linking from within it already - not the desired result I must assume...
-
@tig said:
In passing... I not that you latest version of dline2 missed a 'start_operation' around line #287 so it's still not v6 compatible...
It's effectively defining 'double-click' to be taken as 'enter' - I note that ones 'Double ligne' and the others 'Double line' are also probably typos left over from Didier...I only intended to add some user-interface niceties such as persistent options for selfish reasons, and didn't look too closely at the other parts of the script. I did add version checking to the other start_operation, thanks.
Download link in first post. http://forums.sketchucation.com/viewtopic.php?f=323&t=33875#p297720
-
Your download link isn't working for me again [ http://forums.sketchucation.com/viewtopic.php?f=323&t=33875#p297720 viewtopic.php?f=323&t=33875#p297720 ]
It should be http://forums.sketchucation.com/viewtopic.php?p=297720#p297720 viewtopic.php?p=297720#p297720 ???
What do you get if you copy the link from the 'square' as I suggested earlier ? -
@tig said:
whilst I am sure that there are very 'good reasons' for your suggested approach, I can still see little benefit to me personally to break a habit of a lifetime and actually do things 'properly'
I might have to take your attitude on this one.
http://forums.sketchucation.com/viewtopic.php?f=323&t=33956#p298681
Advertisement