Autore Topic: Highlight excluded shots  (Letto 9827 volte)

Dgrozic

  • Newbie
  • *
  • Post: 4
    • Mostra profilo
Highlight excluded shots
« il: Ottobre 27, 2021, 10:24:44 pm »
Hi,

does anyone know how to highlight (in design view) the shots that are excluded from calculations (in the data view)?
I understand there is an option to write your own highlight condition, but I do not know how to write this condition in VB.NET or C# since I am unfamiliar with the syntax.

Dino

cepe

  • Administrator
  • Hero Member
  • *****
  • Post: 616
    • Mostra profilo
Re:Highlight excluded shots
« Risposta #1 il: Novembre 05, 2021, 09:24:57 am »
Add a shot's highlight, edit is function, press unwrap and put this code:

public function GetHighlight(Details as cShotHighlightDetails) as boolean
      return details.element.exclude andalso not details.element.splay
end function

This highlights shot's with exclude flag but not splay (of course, remove the 'andalso not details.element.splay' part to highlight also splays).