#213257 - 2018-04-10 09:21 PM
ListView - Frame image
|
AndreLuiz
Getting the hang of it
Registered: 2015-10-07
Posts: 92
Loc: Brasil, João pessoa
|
[PT-BR] Olá a todo, eu preciso muito saber se existe uma forma de enquadrar uma imagem em um listview, porque quando eu adiciono um imagens de tamanhos variados em uma imagelist, e ao adicionar a um ícone da listview, eu fica destorcido.
[ENG] Hi all, I really need to know if there is a way to frame an image in a listview, because when I add an image of varying sizes in an imagelist, and when I add a listview icon, I get distorted.
$IMG_Categoria = $Form.ImageList
$IMG_Categoria.ImageSize = 100, 150
dim $i
for $i=1 to ubound($array)
$=$IMG_Categoria.AddStrip($array[$i-1], $System.Color(0,0,0), 100, 150)
next
$ListViewTemporada = $Tab_Main.ListView
$ListViewTemporada.BorderStyle = 0
$ListViewTemporada.Size = $Tab_Main.ClientSize
$ListViewTemporada.Width = $ListViewTemporada.Width-219
$ListViewTemporada.Height = $ListViewTemporada.Height-105
$ListViewTemporada.top = $ListViewTemporada.top+100
$ListViewTemporada.Columns.Count = 1
$ListViewTemporada.SmallImageList = $IMG_Categoria
$ListViewTemporada.LargeImageList = $IMG_Categoria
$ListViewTemporada.BackColor = "Black"
$ListViewTemporada.Sorting = 2
$ListViewTemporada.FontName = "Segoe UI"
$ListViewTemporada.FontBold = 1
$ListViewTemporada.ForeColor = 0, 128, 255
$ListViewTemporada.View = 0
$ListViewTemporada.Anchor = 15

|
|
Top
|
|
|
|
Moderator: ShaneEP, Mart, Radimus, Jochen, Allen, Glenn Barnas
|
0 registered
and 444 anonymous users online.
|
|
|