can anyone give me an example of code used to put an image from an image list on to a form, possibly including the Canvas and Draw bits where you need to specify co-ordinates. I have to put 3 images onto a form, thank you!
This is a bit complex for a single answer. Can you be more specific about what you need? <br><br> There are some good books that will help, too. IMHO, try <i>Borland C++ Builder How-To: The Definitive C++ Builer Problem-Solver</i> by John Miano, Tom Cabanski, and Harold Howe. <p>James P. Cottingham<br><a href=mailto: > </a><br><a href=
Hello aggro,<br><br>In order to draw a bitmap the best choice is put a TImage object inside the form. Then you can use the following code :<br><br><br>ListOfImages->BkColor=clBtnFace; // To assure than background color is the same of the form<br>Graphics::TBitmap *image=new Graphics::TBitmap(); // Create an TBitmap object.<br>ListOfImages->GetBitmap ( NumberInList, image); // Get the 'NumerInList' image of the 'ListOfImages'<br>ImageInsideForm->Picture->Bitmap=image; // Assign the TBitmap to the TImage object. It is drawn // automatically<br>delete image; // delete the temporal object.<br><br>Good luck with your "Jackpot machine" program ;-) <p>Ferran Casarramona<br><a href=mailto: > </a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.