[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

event disabling

Posted on 1997-06-19
1
Medium Priority
?
177 Views
Last Modified: 2010-04-04
I'm writing my event handlers etc. in the main form module that Delphi generated for me.  Is there an easy way to switch event transmission off and on?  I want to be able to change screen appearance by assigning into component properties *without* triggering "OnChange" events.
0
Comment
Question by:nobbyclark
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
icampbe1 earned 200 total points
ID: 1337251
Yes, Subclass the components in question (create a descendant class) and create a new property in that class called DisableEvent (for example).  Supply your own OnChange handler for the origianl component (the ancestor) instead of the one that was plugged in.  Set your new property to TRUE when 'you' want to silently set the other properties.  If it isn't set to true, then you call the original event handler.

It would be nice if all components had a virtual procedure called change that you could override (like Click) and then generate the event if you want to.

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

656 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