Thread Rating:
  • 349 Vote(s) - 2.74 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'Find' dialog custom
08-20-2014, 05:47 PM,
#2
RE: 'Find' dialog custom
Ctrl+FにcustomのFind機能をアサインしたい場合は
KeyAccelを使うのはどうでしょうか?

Code:
{def layout =
    {VBox
        {bold Key Accel Test},
        "Please press Ctrl + F",
        {TextField width = 5cm}
    }
}

{do
    {layout.add-event-handler
        {on AttachEvent do
            def fm = {layout.get-focus-manager}
            {fm.add-key-accel
                {KeyAccel
                    key-accel-string = "Ctrl+F",
                    {on Action do
                        {popup-message "My Find Dialog"}
                    }
                }
            }
        }
    }
}


{value
    layout
}


Messages In This Thread
'Find' dialog custom - by NEOGURi - 08-15-2014, 09:40 AM
RE: 'Find' dialog custom - by dyoshida - 08-20-2014, 05:47 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Dialog and moving focus alchimiste 1 3,557 01-12-2012, 07:59 PM
Last Post: heavybugtracker
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('1101')