![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archive[ANN]: TkDND 2.0 alpha...
From: Georgios Petasis <petasis@iit.demokritos.gr>
Date: Sat Apr 01 2006 - 14:31:47 CEST
Although not an official announcement yet (as my web server is down due
1) TkDND v 2.0 wil lbe incompatible with 1.x versions. Perhaps
2) TkDND won't support user-defined drag and drop format, as
3) The current implementation, support only drops from other applications
4) Motif drag and drop handling won't be supported.
Now, what the new API look like:
Drop target widgets:
A drop target widget can be defined as:
tkdnd::drop_target register .drop_target <type-list>
<type-list> can contain cross-platform types, like "DND_Text" and
Since a widget is registered as a drop target, 4 events can be delivered
set cmd {handle_event %E %W %X %Y %ST %TT %A %a %CST %CTT %T %t %B %D}
The <<Drop>> event, can be more complex: a widget can register a generic
bind .drop_target <<Drop>> $cmd
In such a case, if a file is dropped on the widget, the event
All event bindings, if defined, are expected to return the drop
How does this new interface sounds?
George
(The new version will be available as soon as my server will be up again,
|