PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: mikedoty on July 19, 2005, 10:38:01 AM

Title: How is Pbvlist loaded? How are jpg files displayed?
Post by: mikedoty on July 19, 2005, 10:38:01 AM
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.
Title: How is Pbvlist loaded? How are jpg files displayed?
Post by: TechSupport on July 19, 2005, 12:58:12 PM
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.
Title: How is Pbvlist loaded? How are jpg files displayed?
Post by: TechSupport on July 19, 2005, 02:01:04 PM
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.