<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Mouse box - action for button up? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/822405#M100199</link>
    <description>&lt;P&gt;And is there an action associated with hovering over the mouseBox - like with Hoverlabels?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add a JSL command to the &lt;FONT face="courier new,courier"&gt;Tooltip&lt;/FONT&gt; - but unfortunately the argument of &amp;lt;&amp;lt;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;setTooltip&lt;/FONT&gt; is pre-evaluated.&lt;BR /&gt;Edited:&lt;BR /&gt;Putting the command inside &lt;FONT face="courier new,courier"&gt;Expr()&lt;/FONT&gt;&amp;nbsp;stops JMP from evaluating the command while creating the window.&lt;/P&gt;&lt;P&gt;Unfortunately, it also doesn't get evaluated later.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;new window("",Mouse Box (Text Box("Caption when mouseover?"),&amp;lt;&amp;lt;setTooltip(Caption ("Hello"); "click to revert" )))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My next try: use &lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt; setKeyEnabled(1)&amp;nbsp;&lt;/FONT&gt;and use a key on the keyboard to trigger the action.&lt;BR /&gt;But the Mouse Box needs a &lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt;set focus&lt;/FONT&gt; - so doesn't seem to be the right choice for a MouseOver.&lt;/P&gt;</description>
    <pubDate>Sat, 14 Dec 2024 09:44:26 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-12-14T09:44:26Z</dc:date>
    <item>
      <title>Mouse box - action for button up?</title>
      <link>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/800088#M97585</link>
      <description>&lt;P&gt;For Mouse box , the approach via&amp;nbsp;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt;setClickEnable( 1 ),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt;setClick()&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;"fires" too often.&lt;BR /&gt;Adding a dead time feels extremely laggy.&lt;BR /&gt;&lt;BR /&gt;Does the Mouse ox also "fire" when the button is released? Is there a special setting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand: is there some function like IS CTRL() which returns the current status of the mouse buttons?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 22:41:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/800088#M97585</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-09-18T22:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mouse box - action for button up?</title>
      <link>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/800098#M97586</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;w = New Window( "Mouse Messages", // modified from scripting index setClick
	Border Box( Left( 20 ), Right( 20 ), top( 20 ), bottom( 20 ),
		MouseBox( /* &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; handler for mouse events */
			window:tb = Text Box( "click me!", &amp;lt;&amp;lt;setFontSize( 48 ), &amp;lt;&amp;lt;setwrap( 999 ) ), /* &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; child box does not receive the mouse events */
			&amp;lt;&amp;lt;setClickEnable( 1 ),
			&amp;lt;&amp;lt;setClick( /* button-down, move, button-release handler */
				// the Ticked event happens frequently, and makes it hard to see the Pressed event, so ignore it...
				Function( {this, clickpt, event}, /*Is Alt Key(),Is Control Key(),Is Shift Key() should be captured on "Pressed" */
					If(  event != "Ticked",
						window:tb &amp;lt;&amp;lt; settext( event || Char( clickpt ) );
					)
				)
			)
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6362132885112w960h540r331" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6362132885112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6362132885112w960h540r331');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6362132885112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;You might want to ignore Moved as well as Ticked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MouseBox&amp;lt;&amp;lt;setClick example in the scripting index is one of the &lt;LI-MESSAGE title="Three JSL Easter Eggs" uid="21181" url="https://community.jmp.com/t5/Uncharted/Three-JSL-Easter-Eggs/m-p/21181#U21181" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 23:55:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/800098#M97586</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-09-18T23:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mouse box - action for button up?</title>
      <link>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/800130#M97589</link>
      <description>&lt;P&gt;Thanks. wonderful :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;very well documented in the scripting index - how could I miss it&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 07:14:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/800130#M97589</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-09-19T07:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mouse box - action for button up?</title>
      <link>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/822405#M100199</link>
      <description>&lt;P&gt;And is there an action associated with hovering over the mouseBox - like with Hoverlabels?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add a JSL command to the &lt;FONT face="courier new,courier"&gt;Tooltip&lt;/FONT&gt; - but unfortunately the argument of &amp;lt;&amp;lt;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;setTooltip&lt;/FONT&gt; is pre-evaluated.&lt;BR /&gt;Edited:&lt;BR /&gt;Putting the command inside &lt;FONT face="courier new,courier"&gt;Expr()&lt;/FONT&gt;&amp;nbsp;stops JMP from evaluating the command while creating the window.&lt;/P&gt;&lt;P&gt;Unfortunately, it also doesn't get evaluated later.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;new window("",Mouse Box (Text Box("Caption when mouseover?"),&amp;lt;&amp;lt;setTooltip(Caption ("Hello"); "click to revert" )))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My next try: use &lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt; setKeyEnabled(1)&amp;nbsp;&lt;/FONT&gt;and use a key on the keyboard to trigger the action.&lt;BR /&gt;But the Mouse Box needs a &lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt;set focus&lt;/FONT&gt; - so doesn't seem to be the right choice for a MouseOver.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2024 09:44:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/822405#M100199</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-12-14T09:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mouse box - action for button up?</title>
      <link>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/822727#M100247</link>
      <description>&lt;P&gt;Just the cursor change, I think. Great idea though.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2024 00:55:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mouse-box-action-for-button-up/m-p/822727#M100247</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-12-14T00:55:35Z</dc:date>
    </item>
  </channel>
</rss>

