BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

To Damon Chandler (TeamB) - Re: How to make SubItemImages of

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Adam
Guest





PostPosted: Fri Jun 25, 2004 3:34 pm    Post subject: To Damon Chandler (TeamB) - Re: How to make SubItemImages of Reply with quote



Hi Damon,

First - sorry for posting new thread - just receive strange error message
while trying to make a Reply :

Thanks for the tip - it seemed to work great but two exceptions:
1. I still need to use ListView1->Items->Item[n]->SubImages[0]=2 to make the
image to appear in the subitem
2. It works ONLY on a new project - for a reason it won't work when trying
to use the same code in my existing project. Even when I drop a new
TListView instance on my form Sad Do you by any chance have any idea why it's
like this? Spent last 2 months working on this application...

Tks

AV


Back to top
Damon Chandler (TeamB)
Guest





PostPosted: Mon Jun 28, 2004 5:03 am    Post subject: Re: To Damon Chandler (TeamB) - Re: How to make SubItemImage Reply with quote



Adam,
You shouldn't need to use the SubImages property if you use the code
I posted; what version of BCB are you using? Also, you need to make
sure that the TListView's underlying window has been created before
using the Perform() method--place a call to ListView1->HandleNeeded()
before calling the Perform(LVM_GETEXTENDEDLISTVIEWSTYLE, ...).

Good luck,
--
Damon (TeamB)
C++Builder Developer's Journal
http://bcbjournal.org
http://caq.bcbjournal.org


Adam wrote:
Quote:
Thanks for the tip - it seemed to work great but two exceptions:
1. I still need to use ListView1->Items->Item[n]->SubImages[0]=2 to make the
image to appear in the subitem
2. It works ONLY on a new project - for a reason it won't work when trying
to use the same code in my existing project. Even when I drop a new
TListView instance on my form Sad Do you by any chance have any idea why it's
like this? Spent last 2 months working on this application...

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.