<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <blockquote type="cite">
      <div>However, the tricks to set Brush color inside of OnCustomDraw
        or OnAdvancedCustomDraw do not work.</div>
      <div>Am I missing something? How is it done?</div>
      <div>
        <div><br>
        </div>
      </div>
    </blockquote>
    You cannot do that.<br>
    And even if you get it working with one widgetset, it would fail on
    any other OS, since they all draw it differently.<br>
    <br>
    I ended up writing my own list view
    (<a class="moz-txt-link-freetext" href="http://www.benibela.de/components_en.html#treelistview">http://www.benibela.de/components_en.html#treelistview</a>), <br>
    just to get differently colored rows<br>
    <br>
    Or you can stay with the grid and implement your own selection<br>
    (<a class="moz-txt-link-freetext" href="http://www.lazarus.freepascal.org/index.php?topic=7981.0">http://www.lazarus.freepascal.org/index.php?topic=7981.0</a>)<br>
    <br>
    <br>
    Benito<br>
    <br>
    On 09/12/2012 10:33 PM, Alexsander Rosa wrote:
    <blockquote
cite="mid:CACk-QEtmcSNWOnUawpZsEaFcikOxEZzmS_M+jHDPHitaNcUaBw@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html;
        charset=ISO-8859-1">
      <div>I was using a TStringGrid to show some data but I need the
        "non-linear multi-select" from TListView.</div>
      <div>However, the tricks to set Brush color inside of OnCustomDraw
        or OnAdvancedCustomDraw do not work.</div>
      <div>Am I missing something? How is it done?</div>
      <div>
        <div><br>
        </div>
        -- <br>
        Atenciosamente,<br>
        Alexsander da Rosa<br>
        <br>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
    </blockquote>
  </body>
</html>