<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.cadence.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>One click pan</title><link>https://community.cadence.com/cadence_technology_forums/f/custom-ic-skill/14636/one-click-pan</link><description>I would like to bind my mouse wheel click to the pan function. I&amp;#39;m not sure how to get the location of the mouse wheel click to the hiPan() function. Thanks, Peter</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: One click pan</title><link>https://community.cadence.com/thread/25715?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2010 07:12:02 GMT</pubDate><guid isPermaLink="false">75bcbcf9-38a3-4e2e-b84b-26c8c46a9500:16cbf6ec-5695-4a72-be76-47891db88061</guid><dc:creator>skillUser</dc:creator><description>&lt;p&gt;&amp;nbsp;Have you considered or tried the mouse gestures (a.k.a.&amp;quot;strokes&amp;quot;) which can be entered while pressing the right mouse button down and drawing in the Layout or Schematic window?&amp;nbsp; You will need to load a few files to set this up, something like the following should work:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
  setSkillPath( append( list(prependInstallPath(&amp;quot;etc/sted&amp;quot;)) getSkillPath()))

  load(&amp;quot;stroke.il&amp;quot;)

  load(&amp;quot;defstrokes.il&amp;quot;)

  hiLoadStrokeFile(&amp;quot;def.strokes&amp;quot; &amp;quot;Layout&amp;quot;)

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now you can draw with the right mouse button depressed to make stroke shapes or mouse gestures in the Layout window (it can work for Schematic and Symbol too). A straight line to the right or to the left will pan, likewise for a stroke up or down. A &amp;quot;w&amp;quot; shape will do a &amp;quot;window fit&amp;quot; operation and so on.  There is an executable, &amp;quot;stroke_editor&amp;quot; (for the IC61x releases, for older releases you might be able to use &amp;quot;sted&amp;quot; instead [excuse the pun]) which can be used to view or (re)define the strokes.&lt;/p&gt;&lt;p&gt;Hope this helps you and anyone else interested in strokes.&lt;/p&gt;&lt;p&gt;regards,&lt;/p&gt;&lt;p&gt;Lawrence. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: One click pan</title><link>https://community.cadence.com/thread/25305?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2010 00:19:50 GMT</pubDate><guid isPermaLink="false">75bcbcf9-38a3-4e2e-b84b-26c8c46a9500:0e6e54bf-fe43-457f-834f-7689f0f001bd</guid><dc:creator>Andrew Beckett</dc:creator><description>&lt;p&gt;Peter,&lt;/p&gt;&lt;p&gt;The way this would normally be to bind &amp;lt;Btn4Down&amp;gt; to geScroll(nil &amp;quot;n&amp;quot; nil) and &amp;lt;Btn5Down&amp;gt; to geScroll(nil &amp;quot;s&amp;quot; nil) (and maybe the shift&amp;lt;Btn4Down&amp;gt; to a scroll w and e respectively. Not quite a pan, but probably a bit more intuitive.&lt;/p&gt;&lt;p&gt;&amp;nbsp;hiPan(hiGetCurrentWindow() hiGetCommandPoint()) &lt;/p&gt;&lt;p&gt;would do what you&amp;#39;re asking, but if you try it, the behaviour is extremely weird! It&amp;#39;s the kind of thing that is fine for a single key press, but not sure it makes any sense for a scroll wheel.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Andrew. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: One click pan</title><link>https://community.cadence.com/thread/25302?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2010 23:56:55 GMT</pubDate><guid isPermaLink="false">75bcbcf9-38a3-4e2e-b84b-26c8c46a9500:26669563-9cd4-4b8a-9af9-42f364709150</guid><dc:creator>dmay</dc:creator><description>&lt;p&gt;Try this:&amp;nbsp;&lt;/p&gt;&lt;p&gt;hiPan(hiGetCurrentWindow() hiGetCommandPoint())&lt;/p&gt;&lt;p&gt;More specifically:&lt;/p&gt;&lt;p&gt;hiSetBindKey(&amp;quot;Layout&amp;quot; &amp;quot;&amp;lt;Btn2Down&amp;gt;&amp;quot; &amp;quot;hiPan(hiGetCurrentWindow() hiGetCommandPoint())&amp;quot;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>