TOPIC: Listviewcontrol
Listviewcontrol 3 Years, 8 Months ago

I have tried unsuccessfully now to put color in listviewcontrol
(one line over 2 or marked record ...)

I would like to increase the size of a ligne in listviewcontrol
(for tactical use...)

Thanks for the anwser

Didier B
Re:Listviewcontrol 3 Years, 7 Months ago
Hi, to shade every second line in the list, you have to use the ListControl or BrowseControl. ListViewControl doesn't have the 'noShading' option.
Re:Listviewcontrol 3 Years, 7 Months ago

thank you for your response but
listviewcontrol is used in idcontrol and
i would like to have the possibilitie to
change color line by line in a select tool
box used by idcontrol.

I have already make any change in a listcontrol in the 'paint'
method to display color 1 line up 2.
In a listcontrol its easy to change color or size of a line

Thank you to give me the way or any indications
to get the same r?sult in a listviewcontrol.

didier b
Re:Listviewcontrol 3 Years, 7 Months ago
Hi, the ListViewControl is different from ListControl because the first is a Wrapper to a full Win32 user interface control, while the last is a control created, managed and drawn by Suneido code itself (obviously, with the help of wrapped Win32 API basic functions to create windows and drawing).
Then if you want to change the behavior of a ListViewControl, you have to study the Win32API docs, to see if this Windows control supports what you want. In this case you should send messages to the control via SendMessage(...) function, somewhere in the ListViewControl code...

Some little suggestions:

//to set background color of ListViewControl:
SendMessage(.Hwnd, LVM.SETBKCOLOR, 0, 0x0000FF00) //0x00RRGGBB <-color

//to set text background of the ListViewControl:
SendMessage(.Hwnd, LVM.SETTEXTBKCOLOR, 0, 0x000000FF) //0x00RRGGBB <-color

//to set text foreground color of the ListViewControl:
SendMessage(.Hwnd, LVM.SETTEXTCOLOR, 0, 0x00FF0000) //0x00RRGGBB <-color

I hope this will be of help...

P.S.: if you manage to do what you wanted, posting your mods for the Suneido community will be appreciated. ;)

Post edited by: Mauro, at: 2006/12/27 23:24
Re:Listviewcontrol 3 Years, 7 Months ago
hi, everybody

I havn't got yet the time to color listviewcontrol
Just a modification easy to do in 'keylistview'



it's better for the legibility of the lines in the listviewControl

see you later


Post edited by: didierb, at: 2007/01/16 20:21
Re:Listviewcontrol 3 Years, 7 Months ago
Yes, I think that that with a background grid the keylistview is better.