Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnClick event not firing

Status
Not open for further replies.

dadnoz

Programmer
Sep 18, 2000
1
0
0
US
I have a TDBRadioGroup with 2 entries in it. When I initially select an item (or change from the 2nd to the 1st), that works fine. But when I change it from the first to the second, the onclick event doesn't fire. The first statement in the event is a showmessage and it doesn't appear.

Thanks
Mike King [sig][/sig]
 
You can use OnChange event.I think it can meet your need!

Regards! [sig][/sig]
 
I am not sure what your logic is in the OnClick event but I have not been able to reproduce your problem. Try building a new test application and put down a radio group, add two items and in the OnClick event put the following code:

ShowMessage(IntToStr(RadioGroup1.ItemIndex));

This should trigger each time you select an item and show you the index of which is selected. Then compare that code to what you have.

Hope this helps.

Brett Parkhurst [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top