How is Pbvlist loaded? How are jpg files displayed?

Started by mikedoty, July 19, 2005, 10:38:01 AM

Previous topic - Next topic

mikedoty

How is Pbvlist called.   Are properties and methods exposed somewhere?
If properties and methods are not exposed, in what fucntion should the loading of the array and adding and deleting of the elements be coded
and from where should these functions be called?

I have code to display a jpg image using PB.   Not sure how this code would be incorporated into Firefly, yet.  Anyone have an example putting  a picture box on a form and then loading it with a jpg?

Excuse these simple questions, but new to Firefly.

TechSupport

Hi Mike,

I just created a sample project with a virtual list on it. For some reason it is GPF'ing when I load it with data in the Form's WM_CREATE message. I will track down the cause of this.

To use the pbvlist you will need to send messages to the control (these are explained in the file called pbvlist.inc. They are pretty straight forward.

QuoteAnyone have an example putting a picture box on a form and then loading it with a jpg?
I have never done this before. Maybe if you post the jpg code then I can offer a better answer. I have only used bitmaps and icons with the Picture control.

TechSupport

GPF - my fault. I had forgotten that the array must be Global (it has been a long time since I used Borje's control).

There are several messages that you can handle via separate message handlers (e.g. VLBN_RETURN, VLBN_SPACE....). You can catch all remaining messages in the CUSTOM message handler for the control.