I'm using AdvSmoothListBox.
When I create and show another form from within the OnItemDblClick event, the form is shown, but the focus is sent back to the AdvSmoothListBox.
It happens when TAdvSmoothListBox.MouseDown is called for a second time after DoDblClick is run.
procedure TAdvSmoothListBox.MouseDown(Button: TMouseButton; Shift: TShiftState;
X, Y: Integer);
var
item: integer;
AnchorI, AnchorC, AnchorF, AnchorH: String;
rh, rf: TRect;
delb: Integer;
begin
inherited;
if IsWindowVisible(Handle) and Enabled then
SetFocus;
procedure TMainForm.AdvSmoothListBox1ItemDblClick(Sender: TObject; itemindex:
Integer);
begin
TChildForm.Create(Self).Show;
end;
BTW, it doesn't happen if I use the OnItemClick event.
Thanks.