<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);">
My guess is that the message stream that [receivecanvas] taps into would let you listen to the edit-mode state changes, but not query its state. But you should be able to simulate a query by applying the following logic:</div>
<div style=""><font color="#000000" face="calibri, helvetica, sans-serif"><br>
</font></div>
<div style=""><font color="#000000" face="calibri, helvetica, sans-serif">--When a patch is opened, assume that edit mode is on (is this a safe assumption to make??)</font></div>
<div style=""><font color="#000000" face="calibri, helvetica, sans-serif">--When you hear a message "editmode 0", assume edit mode is turned off.</font></div>
<div style=""><font color="#000000" face="calibri, helvetica, sans-serif">--When you hear "editmode 1", assume it is turned on.</font></div>
<div id="appendonsend"></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> Alexandre Torres Porres <porres@gmail.com><br>
<b>Sent:</b> 25 February 2019 23:52<br>
<b>To:</b> Liam Goodacre<br>
<b>Cc:</b> Pd-List<br>
<b>Subject:</b> Re: [PD] Query if Pd is in Edit mode for a GUI</font>
<div> </div>
</div>
<div>
<div dir="ltr">this shows it's possible to query if Pd is in edit mode in an external :) - this is what I need and I don't mean to do this in vanilla.
<div><br>
</div>
<div>Though at first glance it still seems tricky to me, but I guess it's a good start.
<div><br>
</div>
<div>thanks</div>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">Em seg, 25 de fev de 2019 ās 04:04, Liam Goodacre <<a href="mailto:liamg_uw@hotmail.com">liamg_uw@hotmail.com</a>> escreveu:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
If I remember correctly, [iemguts/receivecanvas] sends a message when you change the edit mode. Not sure that you'll find a way of doing it in Vanilla though.</div>
<div id="x_gmail-m_4328544471699255505appendonsend"></div>
<hr style="display:inline-block; width:98%">
<div id="x_gmail-m_4328544471699255505divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Pd-list <<a href="mailto:pd-list-bounces@lists.iem.at" target="_blank">pd-list-bounces@lists.iem.at</a>> on behalf
 of Alexandre Torres Porres <<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>><br>
<b>Sent:</b> 24 February 2019 17:20<br>
<b>To:</b> Pd-List<br>
<b>Subject:</b> Re: [PD] Query if Pd is in Edit mode for a GUI</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">Em dom, 24 de fev de 2019 ās 13:27, Alexandre Torres Porres <<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>> escreveu:<br>
</div>
<div class="x_gmail-m_4328544471699255505x_gmail_quote">
<blockquote class="x_gmail-m_4328544471699255505x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div> But if it's impossible, I'm fine with that.</div>
</div>
</blockquote>
<div><br>
</div>
<div>Coming to think of it, Pd actually changes the appearance of its comments when in Edit mode, where it shows where to change the size of comments. So yeah, it's totally possible. But I still hope you can help me out with the golden hint of which built function
 to use from pd's source, cause I've been browsing the code for about an hour and couldn't find it :/ </div>
<blockquote class="x_gmail-m_4328544471699255505x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
</blockquote>
</div>
</div>
</div>
</div>
_______________________________________________<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/listinfo/pd-list</a><br>
</blockquote>
</div>
</div>
</body>
</html>