LucieLastic
Programmer
hi
Could someone tell me how to get the receiving listbox to display the string that's been dragged from the source listbox.
I've set up the following but don't know what to put in the DrapDrop event:-
procedure TFormMain.lbColumnsDragOver(Sender, Source: TObject; X,
Y: Integer; State: TDragState; var Accept: Boolean);
begin
Accept := Source is TListBox;
end;
procedure TFormMain.lbselectedColsDragDrop(Sender, Source: TObject; X,
Y: Integer);
begin
if (Sender is TListBox) and (Source is TListBox) then //think the (Source is ...) bit is wrong too.
begin
with Sender as TListBox do
begin
//Don't know what to put here
end;
end;
end;
Many thanks for any help.
lou
Could someone tell me how to get the receiving listbox to display the string that's been dragged from the source listbox.
I've set up the following but don't know what to put in the DrapDrop event:-
procedure TFormMain.lbColumnsDragOver(Sender, Source: TObject; X,
Y: Integer; State: TDragState; var Accept: Boolean);
begin
Accept := Source is TListBox;
end;
procedure TFormMain.lbselectedColsDragDrop(Sender, Source: TObject; X,
Y: Integer);
begin
if (Sender is TListBox) and (Source is TListBox) then //think the (Source is ...) bit is wrong too.
begin
with Sender as TListBox do
begin
//Don't know what to put here
end;
end;
end;
Many thanks for any help.
lou