Archived

This topic is now archived and is closed to further replies.

borland and about it

This topic is 5673 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I think it''s a general windows programming topic, displaying a picture on a button. That''s owner-drawn controls, and I think as long as the compiler support Win32API, you''ll find no problem.


My compiler generates one error message: "Doesn''t compile."
-Albert Tedja-

Share this post


Link to post
Share on other sites
If you mean "how do I put an image onto a button?" then there''s a bitmap button component (TBitBtn) on the ''Additional'' tab. You use its Glyph property to slap an image in there.

If you mean "how do I get a screenshot of my button" then there''s a method of TForm called "GetFormImage". This returns a bitmap image of your form (which you must remember to clear up afterwards - see the example).

If you mean "how do I change the look of my buttons (i.e. skin them)?" then you can use SetWindowRgn in the API to change its appearance then draw a picture over it. Alternatively, you can search for components to do this.

The above information applies to both Delphi and C++ Builder.

Share this post


Link to post
Share on other sites
Just noticed your second question, foogoo. If you''re talking about Delphi then the answer is "it''s fine for games, but not commonly used in the industry". Try using DelphiX and you''ll appreciate how quickly you can whack up simple games. Look at some of the links from Turbo for more information (esp. the DelphiX and UnDelphiX links).

If you''re talking about C++ Builder then... it''s C++, so everyone uses it. It''s fine for games too.

Share this post


Link to post
Share on other sites
bizarre, Im sure I made a post here yesterday....

Anyway I am very interested in joining an beginners/intermediate level group of programmers.

My skills are entrenched firmly in openGL dabbling at thus time, however I do understand the concepts of DirectX/3D programming.

Im actually messing with terrains at the moment and F*K me its fun!

OK regarding the site, I can offer myself to help out in building the site if you want it I run the intranet where I work (HAIL PHP, MYSQL!) and have dabbled heavily in flash.

http://on.to/oni, if you like metal , I am the drummer

I am extremely interested in creating an engine at some stage, however that is a waaaay away and any little projects or big projects can only help us all out




Share this post


Link to post
Share on other sites