I agree it sounds like a build problem. You may also try adding a second button and pointing it at the same code, does it then trigger? Also try placing the break point on other lines, if the line you are trying to break on is part of a multiline statement you need to put the break on the last line.
Rob Software engineer Wild Software Ltd Ph 03 338-1407 ----- Original Message ----- From: "Conor Boyd" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 3:37 PM Subject: RE: [DUG]: On Click event not happening > Still sounds like a compilation problem somewhere. I think Jeremy is maybe > on the right path with suggesting that you remove all DCUs. > > You've got all the Debugging options checked on the Compiler tab in Project > Options? > > C. > > -----Original Message----- > From: Mark Howard [mailto:[EMAIL PROTECTED]] > > Thanks for the responses. > > To expand a bit: > > The TButton is called LoadBtn. > When I doubleclick it (in design mode) it moves me to the LoadBtnClick > event. > There is no other LoadBtn or LoadBtnClick event in the application. > > I have done a build all. > > This is part of a largish application so it is difficult for me to find out > where the program flow is going after the button click. ANY > breakpoint that I place in LoadBtnClick fails to catch the programme > flow because the event is not triggered. > > I don't know how to figure out what code IS being triggered or what > other controls could be capturing the button's onClick event. None of > the containing controls, of the Button, have any events defined until the > Mainform which just has OnCreate and OnDestry and on Resize events. > > Is there any way that I can track where the flow is going, since I can't > track it from the event that should be triggered? > > Mark > > > On 5 Dec 2002 at 14:45, Conor Boyd wrote: > > > Stupid question, but have you done a Build All? > > > > When you say "something other than the ButtonClick event happens", can > > you clarify? You don't have some other event handler assigned to your > > buttons OnClick method? No other control (e.g. the form) is grabbing > > the click first? You don't have any ActionList items whose OnExecute > > method might be firing instead? > > > > Can't think of much else without more details... > > > > HTH, > > > > C. > > > > -----Original Message----- > > From: Mark Howard [mailto:[EMAIL PROTECTED]] > > > > I have a form with a TButton on it with a ButtonClick event defined. > > > > I can put a breakpoint on the first meaningfull line of the > > ButtonClick procedure and it looks to be a 'good' breakpoint ie a > > bright red dot in left margin. > > > > BUT when I run the app (from the IDE) the red dot get's a cross in it > > (so the compiler knows it's not going to use that line) AND when I > > click on the Button - something other than the ButtonClick event > > happens. > > > > Any ideas on how to track down what is happening here? > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/