Solved

Urgent!!!!!

Posted on 2000-03-21
1
157 Views
Last Modified: 2010-04-02
How do I call the click event of a buttonA using the click event of buttonB.
I am using Borland C++ Builder.
I have used buttonAClick(TObject *Sender)  in the click event of buttonB but it does not work.
0
Comment
Question by:pcb69
1 Comment
 
LVL 1

Accepted Solution

by:
loumf earned 40 total points
ID: 2641195
It should be just

buttonAClick(Sender);

where buttonAClick is the name of the event handler for button A.  If you are just calling one from the other then you can just set them to the same function in the event editor.  Just pick buttonAClick in the dropdown for OnClick for Button B.

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now