forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Table Color Coding

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Fri Jul 22, 2005 3:39 pm    Post subject: Table Color Coding Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Fri Jul 22, 2005 5:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sat Jul 23, 2005 10:11 pm    Post subject: Table Color Coding Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sat Jul 23, 2005 11:56 pm    Post subject: Reply with quote

Sorry, not to my knowledge.
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Jul 24, 2005 12:23 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Sun Jul 24, 2005 12:43 am    Post subject: Reply with quote

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
View user's profile Send private message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sun Jul 24, 2005 1:35 am    Post subject: Thank You Everybody Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group