diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2014-09-10 11:46:42 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2014-09-10 11:46:42 +0100 |
commit | fef256b2863b7b6e9ebea8b82831c021b1ab9e94 (patch) | |
tree | 097f69ce26e96ff43465aea6ddc4b081da2f899f /examples/gui | |
parent | ab9787fbf42c41200a3060035a823c82c79ef68b (diff) | |
download | fpGUI-fef256b2863b7b6e9ebea8b82831c021b1ab9e94.tar.xz |
DND demo: report available drop types as soon as possible
Irrespective if we accept it or now. This makes the demo useful for testing
with DND in general.
Diffstat (limited to 'examples/gui')
-rw-r--r-- | examples/gui/drag_n_drop/dndexample.lpr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gui/drag_n_drop/dndexample.lpr b/examples/gui/drag_n_drop/dndexample.lpr index c95b97d0..7414eb6c 100644 --- a/examples/gui/drag_n_drop/dndexample.lpr +++ b/examples/gui/drag_n_drop/dndexample.lpr @@ -64,6 +64,7 @@ procedure TMainForm.Edit1DragEnter(Sender, Source: TObject; var s: string; begin + ShowMimeList(AMimeList); s := 'text/plain'; if chkAccept.Checked then Accept := False @@ -73,7 +74,6 @@ begin begin if AMimeChoice <> s then AMimeChoice := s; - ShowMimeList(AMimeList); end; end; @@ -83,6 +83,7 @@ procedure TMainForm.Bevel1DragEnter(Sender, Source: TObject; var s: string; begin + ShowMimeList(AMimeList); { the mime type we want to accept } s := 'text/html'; { if we wil accept the drop, set Accept to True } @@ -93,7 +94,6 @@ begin if AMimeChoice <> s then AMimeChoice := s; - ShowMimeList(AMimeList); Bevel1.BackgroundColor := clRed; end; end; |