PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

Receiving drops | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

After you have decided which type of data you want your application or widget to accept, you tell everyone about this decision by calling the drag_dest_set() function on the target widget. Since we want to accept files, we need the text/uri-list target type:

Let's analyze the code:

The Gtk knows now that we accept files, but we didn't say what to do with them. The plan is to add all the dropped files to the tree, as children of the currently selected item.

If you drop some files from your favorite file manager, you will see that they are added to the list.

忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「Receiving drops」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | Receiving drops」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: