Solved

Responding to a ButtonClick

Posted on 1997-10-10
4
157 Views
Last Modified: 2010-04-04
Q1. How do I by bypass a button click? For example: Instead of clicking the button with the mouse,I want it to respond to design time code that makes the button think its been clicked.
0
Comment
Question by:Ham
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
fsanchez earned 50 total points
ID: 1347275
You only need to call the Click method of the button.
0
 

Author Comment

by:Ham
ID: 1347276
A simple question does deserve a simple answer. However-

How can I use the OnClick or OnClose event without actually using the Form and it's name - I want to use something like

     Screen.ActiveForm      as it doesn't use names.

Reason being is that I want it to respond (to either OnClose or OnClick) on many forms that fall into certain category.

    ie. If a Form has a certain height, rather than manually (with the mouse) close or click I would like design code to do this.
Thanks.
0
 

Author Comment

by:Ham
ID: 1347277
A simple question does deserve a simple answer. However-

How can I use the OnClick or OnClose event without actually using the Form and it's name - I want to use something like

     Screen.ActiveForm      as it doesn't use names.

Reason being is that I want it to respond (to either OnClose or OnClick) on many forms that fall into certain category.

    ie. If a Form has a certain height, rather than manually (with the mouse) close or click I would like design code to do this.
Thanks.
0
 
LVL 1

Expert Comment

by:fsanchez
ID: 1347278
Sorry, I cant't understand. A more complete example would help. What means 'design code'?
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 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