<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr">Hi,</div><div dir="ltr">The example source code is a bit misleading because it is called by demo:load_example/2</div><div dir="ltr">So Config would be a propslist with members parent, demo_sz and log</div><div dir="ltr">It's instructive to look at that code. It's in the example directory of wx library</div><div dir="ltr">Regards</div><div dir="ltr">Arif</div><div dir="ltr"><br><blockquote type="cite">On 29 May 2021, at 07:37, Peter J Etheridge <petergi@iinet.net.au> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div>Dear Erlangers,</div><div><br></div><div>In this module from the manual;</div><div><br></div><div><br></div><div>
      <table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">
-module(ex_notebook).<br><br></td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">-<span class="pl-k">include_lib</span>(<span class="pl-s"><span class="pl-pds">"</span>wx/include/wx.hrl<span class="pl-pds">"</span></span>).</td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">
<br></td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">-<span class="pl-k">behaviour</span>(<span class="pl-en">wx_object</span>).</td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">
<br></td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">-<span class="pl-k">export</span>([<span class="pl-en">start</span>/<span class="pl-c1">1</span>, <span class="pl-en">init</span>/<span class="pl-c1">1</span>, <span class="pl-en">terminate</span>/<span class="pl-c1">2</span>,  <span class="pl-en">code_change</span>/<span class="pl-c1">3</span>,</td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">         <span class="pl-en">handle_info</span>/<span class="pl-c1">2</span>, <span class="pl-en">handle_call</span>/<span class="pl-c1">3</span>, <span class="pl-en">handle_cast</span>/<span class="pl-c1">2</span>, <span class="pl-en">handle_event</span>/<span class="pl-c1">2</span>]).</td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">
<br></td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">-<span class="pl-k">record</span>(<span class="pl-en">state</span>, </td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">        {</td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">          <span class="pl-smi">parent</span>,</td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">          <span class="pl-smi">config</span>,</td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">          <span class="pl-smi">notebook</span></td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">         })</td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line">
<br></td>
      </tr></tbody></table><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line"><span class="pl-en">start</span>(<span class="pl-smi">Config</span>) <span class="pl-k">-></span></td>
      </tr></tbody></table><span class="pl-en">wx_object</span>:<span class="pl-en">start_link</span>(<span class="pl-k">?</span><span class="pl-en">MODULE</span>, <span class="pl-smi">Config</span>, []).</div><div>.....</div><div><br></div><div><br></div><div>Apart from the argument being a variable and a data field in the state record, in this context what is Config ?</div><div><br></div><div><br></div><div>Thank you in advance.</div><div><br></div><div>Peter<br></div><div><br><table class="highlight tab-size js-file-line-container"><tbody><tr><td class="blob-code blob-code-inner js-file-line"><span class="pl-k"></span><span class="pl-en"></span><br></td>
      </tr></tbody></table></div><br><br>
</div></blockquote></body></html>