<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
Several months later, and I've worked out an enhancement on Federico's system for changing the cursor icon.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
The one limitation with the file Federico uploaded was that you had to minimize the window (vis 0) after resetting the cursor, or else it would fail to flip the icon when you entered edit mode. I've managed to fix this by modifying the hexadecimal canvas symbol.
 [canvas_name] gives you a symbol that looks something like "xxxx.c" ; if you just remove the " .c " from the end, then you can change the cursor and still enjoy normal behavior in edit mode without having to minimize the window.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
Just posting this for the record, in case it's useful to anybody.</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Federico Camara Halac <camarafede@gmail.com><br>
<b>Sent:</b> 26 September 2017 21:21<br>
<b>To:</b> Liam Goodacre; Pd-List<br>
<b>Subject:</b> Re: [PD] how to change the cursor icon (tcl)</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="x_gmail_extra">Hi Liam (back to the list now ;)</div>
<div class="x_gmail_extra"><br>
</div>
<div class="x_gmail_extra">You can trigger the cursor change from a subpatch or abstraction, it doesn't matter, as long as you are in the same pd instance and the canvas_name symbol for the target is visible.<br>
</div>
<div class="x_gmail_extra"><br>
</div>
<div class="x_gmail_extra">I attached a patch where this is working from inside an abstraction with a metro (needs hcs).</div>
<div class="x_gmail_extra"><br>
</div>
<div class="x_gmail_extra"> I don't know of any other way to change the cursor type other than sysgui and <i>configure -cursor</i>. Also I don't know what you mean by pdsend finished. I guess in the end this might be system dependent and probably a tcl version
 thing that I simply don't know ;) all my knowledge here comes from hacking through this amazing code </div>
<div class="x_gmail_extra"><br>
</div>
<div class="x_gmail_extra">either I don't understand your problem or itseems to be working as far as i can see. </div>
<div class="x_gmail_extra"><br>
</div>
<div class="x_gmail_extra">cheers</div>
<div class="x_gmail_extra"><br>
</div>
<div class="x_gmail_extra">fd</div>
<div class="x_gmail_extra"><br>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Tue, Sep 26, 2017 at 3:28 PM, Liam Goodacre <span dir="ltr">
<<a href="mailto:liamg_uw@hotmail.com" target="_blank">liamg_uw@hotmail.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Yeah those are the kinds of problems that I've been facing. Ultimately, I want to trigger the change from a hidden canvas, ie. inside a canvas. I'm also finding that it seems to work only if triggered by a "click" (of a bang or message box). Trying to automate
 the process, ie. with a metro, mysteriously fails. (I think this is something to do with the "pdsend finished" message I mentioned previously).</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Is there any way around these problems, or is this a lost cause?<br>
</div>
<hr style="display:inline-block; width:98%">
<div id="x_m_-2485507390667984368divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Federico Camara Halac <<a href="mailto:camarafede@gmail.com" target="_blank">camarafede@gmail.com</a>><br>
<b>Sent:</b> 26 September 2017 19:46<br>
<b>To:</b> Liam Goodacre<br>
<b>Subject:</b> Re: [PD] how to change the cursor icon (tcl)</font>
<div> </div>
</div>
<div>
<div class="x_h5">
<div>
<div dir="ltr">Hi Liam, using hcs, I imagine you can use something like this, but it doesn't seem to work all the time. The canvas needs to be visible. Moving the mouse in an out of the canvas triggers the new cursor on mac at least.
<div><br>
<div>[bang(</div>
<div>|</div>
<div>[canvas_name]  (  the target canvas )
<div>|</div>
<div>[$1 configure -cursor <i>hand</i>(        (or whatever <a href="https://www.tcl.tk/man/tcl8.4/TkCmd/cursors.htm" target="_blank">
cursor name</a>)</div>
</div>
<div>|</div>
<div>[sys_gui]</div>
</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Tue, Sep 26, 2017 at 1:33 PM, Liam Goodacre <span dir="ltr">
<<a href="mailto:liamg_uw@hotmail.com" target="_blank">liamg_uw@hotmail.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="x_m_-2485507390667984368m_-2781860143198451030divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="margin-top:0px; margin-bottom:0px">I'm looking for a reliable way to change the cursor icon, ie. from an arrow to dot or something else.<br>
</p>
<p style="margin-top:0px; margin-bottom:0px"><br>
</p>
<p style="margin-top:0px; margin-bottom:0px">The [cursor] object in the hcs library does just this, but it gives a nasty tcl error when triggered inside an abstraction. I don't imagine that this library will be updated any time soon, so I've been looking for
 alternatives.</p>
<p style="margin-top:0px; margin-bottom:0px"><br>
</p>
<p style="margin-top:0px; margin-bottom:0px">There ought to be a raw tcl messages which can be sent to [sys_gui] (also hcs library). I've found one which is promising:</p>
<p style="margin-top:0px; margin-bottom:0px"><br>
</p>
<p style="margin-top:0px; margin-bottom:0px"><span>set ::cursor_runmode_nothing "left_side"</span></p>
<p style="margin-top:0px; margin-bottom:0px"><br>
</p>
<p style="margin-top:0px; margin-bottom:0px">But I'm running into difficulties with this also, as it seems to expect a "pdsend xxx finished" message, where xxx is some hexadecimal that I can't work out.</p>
<p style="margin-top:0px; margin-bottom:0px"><br>
</p>
<p style="margin-top:0px; margin-bottom:0px">Does anybody know how to make this work?</p>
<span class="x_m_-2485507390667984368HOEnZb"><font color="#888888">
<p style="margin-top:0px; margin-bottom:0px"><br>
</p>
<p style="margin-top:0px; margin-bottom:0px">Liam<br>
</p>
</font></span></div>
</div>
<br>
______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">
https://lists.puredata.info/li<wbr>stinfo/pd-list</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="x_m_-2485507390667984368gmail_signature">
<div dir="ltr"><a href="http://fdch.github.io/tv" target="_blank">http://fdch.github.io/tv</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="x_gmail_signature">
<div dir="ltr"><a href="http://fdch.github.io/tv" target="_blank">http://fdch.github.io/tv</a></div>
</div>
</div>
</div>
</div>
</body>
</html>