OnClick event calls OnCreate handler??
In a very simple application, I have Database, Query and Datasource components, and a ListBox that I fill manually with strings taken from the database (I don't connect the ListBox to the Datasource because I want to modify the data before displaying it). All that seems to work okay, but in the next step I want the user to be able to click on a ListBox row and have the program fetch that string and do various things with it. The problem (bug?) is, when the ListBox is clicked on, instead of the OnClick handler for the ListBox being triggered, the OnCreate handler for Unit1 is triggered (again, since it was already called when the application started of course). What is going on here? Yes, I do have the proper handlers selected in the Events for each component.
Thanks to anyone who can help me resolve this problem...
搜索更多相关主题的帖子:
handler calls event OnClick OnCreate