You are here:

C++/C++ Builder GUI Panels/PNG files


Followup To
Question -

I am using C++ Builder 6. I want to use panels that have rounded off corners.. The stock components in C++B6 dont seem to do this. So i tried using a PNG graphic file,, but it wont stretch when i try to resize it..

Do you know why my PNG wont stretch (bmp files do stretch but are to big file size wise).. or is there a component that has rounded off corners?

Answer -

I'm not sure if a PNG file will manually stretch in whatever program. I do know you can stretch it in code by using StretchBlt instead of BitBlt. Did you try doing that?

Also, you can get the rounded corner boxes by using an MFC dialog box. All the buttons are customizable to look however you want them to.

I hope this information was helpful

- Eddie

Thank you for the fast reply....

I am kinda a newbie at C++ Builder6. Teaching it to myself. I was trying to figure out the function you mentioned but didnt see it come up when i typed the Panel name and used -> , nothing came up. Is it not a core function built into Builder6?

Also the MFC Dialog... Where is that in Builder. I didnt see it in the help.

Again, thanks for the fast reply


Well, I hope I wasn't misleading earlier. I've never really worked on anything that wasn't with the Microsoft Visual C++ compiler. StretchBlt is a function used for rendering. Its not really a member function of anything. You call it and blit from your buffered device context to your renderable device context. I also had assumed you could make MFC projects in your compiler also. I thought MFC was an itegrated part of the C++ language. Sorry if I confused or mislead.

I hope this information was helpful.

- Eddie


All Answers

Answers by Expert:

Ask Experts




I can answer questions about the C++ language, object oriented design and architecture. I am knowledgable in a lot of the math that goes into programming, and am certified by I also know a good deal about graphics via OpenGL, and GUIs.


I have completed numerous games and demos created with the C++ programming language. Currently employed as a software engineer in the modeling and simulation field. I have about 7 years experience.

©2016 All rights reserved.