| View previous topic :: View next topic |
| Author |
Message |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Fri Jul 22, 2005 3:39 pm Post subject: Table Color Coding |
|
|
Is there as way that anybody knows of that would allow me to color code different entries to a table as they are added in VDS. I have tried adding a style but the style is applied to the entire table and not each entry itself. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Fri Jul 22, 2005 5:29 pm Post subject: |
|
|
The TABLE element is actually a Windows ListView control. The only way to
do what you want is to implement a custom draw function for the control
in question, and that isn't possible with VDS. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Sat Jul 23, 2005 10:11 pm Post subject: Table Color Coding |
|
|
I have the entire table colored using a style. Is there a way to change the style while items are being added? _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sat Jul 23, 2005 11:56 pm Post subject: |
|
|
Sorry, not to my knowledge. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Jul 24, 2005 12:23 am Post subject: |
|
|
have you looked at the "table api" help file that codescript put together . . . fro memory, he deals with table colours and row colours (not individually but as a whole) and he may have listed an api that enables you to change table colours on the fly
http://www.vdsworld.com/download.php?id=341&sid=92e3e469411fcca98fa4856edab685ce
serge _________________
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Sun Jul 24, 2005 12:43 am Post subject: |
|
|
It may be possible with VDS but it will take a lot of work. You need to basically modify the control so it's owner drawn, allowing you to handle the painting of the entire control. That means you would have to handle the entire canvas (ie, the text painting, the layout of the text, background color) and also have to handle repaint messages.
I don't think the listview control natively has built in support for multiple colors thus the reason to subclass the control and manage it yourself. |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Sun Jul 24, 2005 1:35 am Post subject: Thank You Everybody |
|
|
Thanks. The API and DSU will work for what im trying to do. All the suggestions are appreciated. Will let you know how it turns out. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
|