Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Responding to a ButtonClick

Posted on 1997-10-10
4
Medium Priority
?
165 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 100 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

971 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