Related to : Close suggestion box when user click "Clear" button
|
Metro Search Charm - clear search box programmatically after user accepted the result suggestion |
Coding |
 |
I would like to clear the search box in metro search charm after
the user accepted one of the result suggestion my app is providing to
the charm. How? Sounds easy but it is not, SearchPane.QueryText is
read only.
I am actually surprised by the default system
behavior. After the user accepted the ResultSuggestion (please
remember to distinguish from QuerySuggestion) it does not make sense
in my eyes to pre-populate the search box with this accepted
result...
|
Recognize when user close a window (when click on close button) |
Coding |
 |
How can i recognize when user close a window ?
i want
to do something before window close.
|
Hide frame instead of close when user click on close button of the window |
Coding |
 |
I have an application which shows a window. Instead of closing
window when user presses on "Close" button I want just to hide this
window, how can I do this?
Here is my code (it does not
work, the app is closed on click):
object UxMonitor
{ def main(args: Array[String]) { val frame = new
MainScreen()
frame.peer.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE) initTrayIcon(frame.peer) }
....
class MainScreen extends MainFrame {
private val HEADERS = Array[Object]("Security", "Last Price",
"Amount", "Cost") priv
|
Close suggestion box when user click Clear button - ? |
Coding |
 |
How can I close the suggestion box when the user click the Clear
button?When the suggestion box is closed, how can the Search &
Clear button move up to its original place?What code should I insert
to do this?This is my current code:<html> <head>
<title> Brandon's Search Engine </title>
<style type="text/css"> #suggestion {
border: 1px solid black; visibility: hidden;
|
Close suggestion box when user click Clear button |
Coding |
 |
How can I close the suggestion box when the user click the Clear
button?When the suggestion box is closed, how can the Search &
Clear button move up to its original place?What code should I insert
to do this?You can see the buttons when you run this code.This is my
current code:<html> <head> <title>
Brandon's Search Engine </title> <style
type="text/css"> #suggestion { border:
1px soli
|
Close suggestion box when user click "Clear" button |
Coding |
 |
How can I close the suggestion box when the user click the Clear
button? When the suggestion box is closed, how can the Search & Clear
button move up to its original place? What code should I insert to do
this?You can see the buttons when you run this code.This is my current
code:<html> <head> <title>
Brandon's Search Engine </title> <style
type="text/css"> #suggestion { border:
1px sol
|