私はmonodevelop3.0.4.6でGTK#を使用していますが、WindowsではシングルクリックGtk.EventBox
の検出に接続されていますが、ダブルクリック()がトリガーされることはありません。理由は誰かわかりませんか?ハンドラーメソッドに属性を追加しようとしましたが、何も変更されませんでした。、ボタン、イベントボックスを試してみましたが、シングルクリックを検出するものはすべてありますが、ダブルクリックはありません...ButtonPressEventHandler
(EventType.ButtonPress)
EventType.TwoButtonPress
"[GLib.ConnectBefore]"
TreeView
私のコードのサンプル:
// Somewhere in the constructor :
eventBox.ButtonPressEvent += new ButtonPressEventHandler(myButtonPressHandler);
// The called method
private void myButtonPressHandler(object obj, Gtk.ButtonPressEventArgs a)
{
EventButton ev = a.Event;
// single click
if (ev.Type == EventType.ButtonPress)
{
MyLogger.output("1");
}
// double click
else if (ev.Type == EventType.TwoButtonPress)
{
MyLogger.output("2");
}
}