Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • ListCtrl: images in a column

    2 answers - 378 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hello,
    Is it possible to place multiple images in a column of a ListCtrl?
    What I want to do is use one column of the ListCtrl to provide hints about
    the row via some images.
    The hints are like "Has a X, Y, Z" and I want to exemplify this hints by
    small 16x16 images
    Attached is a small mockup of what I try do.
    Thank you in advance.
    Peter
  • No.1 | | 789 bytes | |

    Peter Damoc wrote:
    Hello,

    Is it possible to place multiple images in a column of a ListCtrl?

    What I want to do is use one column of the ListCtrl to provide hints
    about the row via some images.
    The hints are like "Has a X, Y, Z" and I want to exemplify this
    hints by small 16x16 images
    Attached is a small mockup of what I try do.

    It is now possible to have images in other columns, but since all of the
    images in the wx.ImageList need to be the same size I don't think that
    would be the solution you need, unless you use a separate column for
    each hint image. IIRC there have been some examples sent here in the
    past of positioning controls over cells in a wx.ListCtrl, perhaps you
    could do something like that with wx.StaticBitmaps.
  • No.2 | | 789 bytes | |

    Peter Damoc wrote:
    Hello,

    Is it possible to place multiple images in a column of a ListCtrl?

    What I want to do is use one column of the ListCtrl to provide hints
    about the row via some images.
    The hints are like "Has a X, Y, Z" and I want to exemplify this
    hints by small 16x16 images
    Attached is a small mockup of what I try do.

    It is now possible to have images in other columns, but since all of the
    images in the wx.ImageList need to be the same size I don't think that
    would be the solution you need, unless you use a separate column for
    each hint image. IIRC there have been some examples sent here in the
    past of positioning controls over cells in a wx.ListCtrl, perhaps you
    could do something like that with wx.StaticBitmaps.

Re: ListCtrl: images in a column


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "Python"

EMSDN.COM