<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Oct 2, 2018 at 9:07 PM Bruce Mutton via Therion <<a href="mailto:therion@speleo.sk">therion@speleo.sk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-NZ"><div class="gmail-m_9013402508571840943WordSection1"><p class="MsoNormal">If I wanted to box just one or two text labels, night it be possible to pass this parameter using a standard ‘point label’ entity with a ‘mode’ option?<br></p><div><p class="MsoNormal"><span>Or would we have to go down a user defined label route?</span></p></div></div></div></blockquote><div><br></div><div>Hi,</div><div><br></div><div>there is no such option, but you can use custom attribute, let's name it "label_mode":</div><div><br></div><div>-attr label_mode 6<br></div><div><br></div><div>Than you just need to redefine the label macro to use it:</div><div><br></div><div><div>vardef p_label@#(expr txt,pos,rot,mode_) =</div><div>  if known ATTR_label_mode:</div><div>    mode := scantokens(ATTR_label_mode);</div><div>  else:</div><div>    mode := mode_;</div><div>  fi;</div><div>  if (mode=1) or (mode=7): interim labeloffset:=(u/8) fi;</div><div>  lab:=thelabel@#(txt, pos);</div><div>  if mode>1: pickup PenD fi;</div><div>  if mode=1:</div><div>    pickup pencircle scaled (u/6);</div><div>    drawdot(pos);</div><div>    process_label(pos,0);</div><div>  elseif mode=2: process_uplabel;       </div><div>  elseif mode=3: process_downlabel;</div><div>  elseif mode=4: process_updownlabel;</div><div>  elseif mode=5: process_circledlabel;</div><div>  elseif mode=6: process_boxedlabel;</div><div>  elseif mode=7: process_label(pos,rot);  % station name</div><div>  elseif mode=8: process_filledlabel(pos, rot);</div><div>  else: process_label(pos,rot); fi;</div><div>enddef;</div></div><div><br></div><div>Best regards,</div><div>Martin</div><div><br></div><div><br></div><div> </div></div></div></div></div></div>