 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Adam Guest
|
Posted: Fri Jun 25, 2004 3:34 pm Post subject: To Damon Chandler (TeamB) - Re: How to make SubItemImages of |
|
|
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 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
|
Posted: Mon Jun 28, 2004 5:03 am Post subject: Re: To Damon Chandler (TeamB) - Re: How to make SubItemImage |
|
|
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 Do you by any chance have any idea why it's
like this? Spent last 2 months working on this application...
|
|
|
| Back to top |
|
 |
|
|
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
|
|