Re: [VWNC] [VW9.xx] Tree View presentation question

Holger Kleinsorgen <[email protected]> Thu, 12 Dec 2024 13:26:20 +0100
Newsgroups gmane.comp.lang.smalltalk.vwnc
Message-ID <CAGhifEyck4Ep3qpOHQAWyXZXF-WKpF-JGRKog9QTZ7vMtsSyXg@mail.gmail.com>
--00000000000003ef77062911d379
Content-Type: text/plain; charset="UTF-8"

Hi Mark,

- Using the WindowsNativeSkin as a superclass should be possible, there is
already a subclass for Windows 7
- The text emphasis can be customized in the tree view spec, but the text
display method is not part of the skin. See
TreeViewIndentedLabelAndIcon>>displayTextOn:

Am Di., 10. Dez. 2024 um 17:23 Uhr schrieb mark pirogovsky <
[email protected]>:

> Thank you Holger,
>
> Few more questions:
>
>
>    - You say "one option" -- is there another one ?
>    - Had anybody try to do something like that ?
>    - Can you create a skin with those particular methods as a subclass of
>    the WindowsNative skin ?
>    - it looks like you need to have a third method there:
>    #treeArtistForView: , where you specify how to display labels relations to
>    the tree opened/closed status ?
>
>
> Best regards,
> ---
> Mark Pirogovsky
>
>
> Holger Kleinsorgen wrote:
>
> Hi Mark,
>
> one option is to create a custom skin, e.g. a subclass of
> WindowsEmulatedLightSkin, and then implement the tree display methdos
> according to your needs:
> - #treeDrawItemBackgroundOnGC:usingArtist:
> - #treeDrawDisclosureImageOnGC:usingArtist:
>
> Regards, Holger
>
>
>

--00000000000003ef77062911d379
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Mark,</div><div><br></div><div>- Using the Windows=
NativeSkin as a superclass should be possible, there is already a subclass =
for Windows 7</div><div>- The text emphasis can be customized in the tree v=
iew spec, but the text display method is not part of the skin. See TreeView=
IndentedLabelAndIcon&gt;&gt;displayTextOn:</div></div><br><div class=3D"gma=
il_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">Am Di=
., 10. Dez. 2024 um 17:23=C2=A0Uhr schrieb mark pirogovsky &lt;<a href=3D"m=
ailto:[email protected]">[email protected]</a>&gt;:<br></div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex">
 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF">
    <div>Thank you Holger,<br>
      <br>
      Few more questions:<br>
      <br>
      <ul>
        <li>You say &quot;one option&quot; -- is there another one ?</li>
        <li>Had anybody try to do something like that ?</li>
        <li>Can you create a skin with those particular methods as a
          subclass of the WindowsNative skin ? <br>
        </li>
        <li>it looks like you need to have a third method there:
          #treeArtistForView: , where you specify how to display labels
          relations to the tree opened/closed status ?<br>
          <br>
        </li>
      </ul>
      Best regards,<br>
      ---<br>
      Mark Pirogovsky<br>
      <br>
      <br>
      Holger Kleinsorgen wrote:<br>
    </div>
    <blockquote type=3D"cite">
      <div>Hi Mark,</div>
      <div><br>
      </div>
      <div>one option is to create a custom skin, e.g. a subclass of
        WindowsEmulatedLightSkin, and then implement the tree display
        methdos according to your needs:</div>
      <div>- #treeDrawItemBackgroundOnGC:usingArtist:</div>
      <div>- #treeDrawDisclosureImageOnGC:usingArtist:</div>
      <div><br>
      </div>
      <div>Regards, Holger</div>
    </blockquote>
    <br>
  </div>

</blockquote></div>

--00000000000003ef77062911d379--