When I click the OK button, the form is closed, returning a mrOK. I want to do the same when a TListBox element is double-clicked. I thought to do that the following way:
When the OK button is pressed, the procedure OKBtnClick is called. When an element in the listbox is double clicked, the following procedure is called:
procedure x.OnBoxDblClick (Sender: TObject);
However when I do this, the form is not closed. What am I doing wrong?