<div dir="ltr">Dear Lucia,<div><br></div><div><span style="font-size:12.8px">> I want to enable/disable items in a uimenu I created and integrated in the Eeglab interface.</span><br></div><div><br></div><div>I see. I often need to pick up this kind of tricks from other plugins for example. Some of the plugins have pretty complicated code to control enable and disable their menu items depending on some other variables. I can't give you good examples now, unfortunately, but I recommend you install random plugins to investigate what they do in eegplugin_xxx.m part. Sorry for my stupid answers!</div><div><br></div><div>Makoto</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 18, 2016 at 10:35 AM, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Lucia,<span class=""><div><br></div><div>> I am creating an EEGLAB plugin for the analysis and detection of high-frequency oscillations (HFOs).<br></div><div class="gmail_extra"><br></div></span><div class="gmail_extra">Fantastic. I made one in the past for continuous ECoG, and my colleague is making another one now for epoched ERPs. </div><span class=""><div class="gmail_extra"><br></div><div class="gmail_extra">> I would like to enable some of the uimenus only if some variables (created by different functions) are present in the workspace.<br></div><div class="gmail_extra"><br></div></span><div class="gmail_extra">isfield(EEG, 'pac') checks if EEG.pac exists or not.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Makoto</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Aug 13, 2016 at 8:20 AM, Quitadamo, Lucia <span dir="ltr"><<a href="mailto:l.quitadamo@aston.ac.uk" target="_blank">l.quitadamo@aston.ac.uk</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">
<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hello everybody,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am creating an EEGLAB plugin for the analysis and detection of high-frequency oscillations (HFOs). I have created a set of functions which can be called by means of a list of uimenus which I already integrated in the EEGLAB interface.
I would like to enable some of the uimenus only if some variables (created by different functions) are present in the workspace. Do you know how to do that? I have tried with “userdata” property, but I have been able just to disable the uimenu at the startup.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks for your support.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Best,<span><font color="#888888"><u></u><u></u></font></span></p><span><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Lucia<u></u><u></u></p>
</font></span></div>
</div>
<br></div></div>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/ee<wbr>glabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.uc<wbr>sd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.e<wbr>du</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div>