Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am new to BCB

Status
Not open for further replies.

ehsax00

Programmer
Feb 7, 2002
2
US
I know my way around a c++ program, but C++ builder Inprise is new to me. How do I work it? how do I make the buttons do the work for me(so to speak)? Is this like the transition between QBasic and Visual Basic? (I previously used Bloodshed's DEV-C++)
 
With BCB, the visual components are pre written. Since they represent objects based upon certain classes, each component will have certain properties and events. For example, if you drop a BitBtn onto a form, you can change its caption, the cursor appearance, the kind of button it is (close, cancel, abort, etc), its Glyph(bmp image associated with the button), etc. On its events, you can change what the button does when someone clicks the button, moves the mouse over the button, releases the mouse button, etc.

The latter section is where you use the C++ coding to do the work. If the button is a Close button, the code could be as simple as
Code:
Close();
in the OnClick event. If you wanted the button to import an ascii file into a table, your coding would be more complex.

Clear as mud, now??? James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
ok...I think I get it. So how would I have users enter info in one box, and it gets sent to another when you click a button? Like AIM messenger boxes.
 
You will need an edit box on a form and also the socket components. Look around this forum and in the FAQ since this has been asked here before.
James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
You might also try looking through the book and/or taking the tutorial or even buying a book.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top