Beginning to work with ListView - basic problem

Started by Ian Bayly, May 07, 2009, 02:07:01 AM

Previous topic - Next topic

Ian Bayly

As a beginner I'm just moving to use a ListView.
When I put a ListView control on a form and then without adding any code, I run a compile, I get the following error:
Error Number = 519
Error description = Missing declaration:LISTVIEW_SETTEXTCOLOR
ListView_SetTextColor hWndControl, 0.

I guess it's trying to tell me to set the text color - how, where and why?
Apologies if I am missing something very basic!

Ian B

TechSupport

Kind of sounds like maybe you replaced the default PB Winapi include files with Jose Roca's include files - maybe?


Ian Bayly

Thanks Paul - I reloaded the install API files and now compiles no problems.
You certainly do know your way around PB!!!

Ian B

TechSupport

:)

Happy to hear that it worked out for you. You'll also be pleased to know that support for Jose's new include files is incredibly easy in the upcoming FireFly 3.


JR Heathcote

Ian,

I find myself bitten by the API "bug" more times than I care to remember, just ask Paul.  ;D

During application development, you might want to consider using the packaged API's in the \WinAPI directory from your PB installation.  I know these master include files may be a bit of overkill, but everything is there.  Once you have your application working use Borje Hagsten's InClean utility to create an include file that has just the bits and pieces of the API's you need for your specific app. 

InClean is another great tool to learn what specific API calls are necessary to handle specific controls.

JR