473,398 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How to make the Close button lying at the right-top corner of form get the focus?

??
Nov 16 '05 #1
5 2806
I want to use ESC to close the form, but it's nullity.i think that should be
have a function to make the Close button to get the focus, liking
SendMessage(...) function!
"John" <to*@sohu.com> дÈëÓʼþ news:Oj**************@TK2MSFTNGP10.phx.gbl...
??

Nov 16 '05 #2
In our project, we use keyboard to control the system and the application
"John" <to*@sohu.com> дÈëÓʼþ news:Oj**************@TK2MSFTNGP10.phx.gbl...
??

Nov 16 '05 #3
just capture the escape on the form and close it. You cannot give focus to
the window close button (the X in the upper right).
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"John" <to*@sohu.com> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
I want to use ESC to close the form, but it's nullity.i think that should
be
have a function to make the Close button to get the focus, liking
SendMessage(...) function!
"John" <to*@sohu.com> дÈëÓʼþ
news:Oj**************@TK2MSFTNGP10.phx.gbl...
??


Nov 16 '05 #4
another question, when a button gets the focus, why the choice action is
click the SPACE, not the ENTER?
"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> дÈëÓʼþ
news:v9********************@comcast.com...
just capture the escape on the form and close it. You cannot give focus to
the window close button (the X in the upper right).
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"John" <to*@sohu.com> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
I want to use ESC to close the form, but it's nullity.i think that should
be
have a function to make the Close button to get the focus, liking
SendMessage(...) function!
"John" <to*@sohu.com> дÈëÓʼþ
news:Oj**************@TK2MSFTNGP10.phx.gbl...
??



Nov 16 '05 #5
according to windows u/i guidelines (which have been published for over a
decade), space selects the current button, enter selects the default button
on the form.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"John" <to*@sohu.com> wrote in message
news:eM*************@TK2MSFTNGP10.phx.gbl...
another question, when a button gets the focus, why the choice action is
click the SPACE, not the ENTER?
"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> дÈëÓʼþ
news:v9********************@comcast.com...
just capture the escape on the form and close it. You cannot give focus
to
the window close button (the X in the upper right).
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"John" <to*@sohu.com> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
>I want to use ESC to close the form, but it's nullity.i think that
>should
>be
> have a function to make the Close button to get the focus, liking
> SendMessage(...) function!
> "John" <to*@sohu.com> дÈëÓʼþ
> news:Oj**************@TK2MSFTNGP10.phx.gbl...
>> ??
>>
>>
>
>



Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ...D. | last post by:
OK. I am halfway decent with HTML. Now I want to try javascript for some things that HTML cannot do. I have looked over a tutorial & all. What I want to do is create a button, that when...
3
by: Kathy Burke | last post by:
I see plenty of examples of window.close javascript for a button or link click, but I would like to do is close the pop-up window when my submit code has completed successfully. Any suggestions?...
19
by: Swaregirl | last post by:
Hello, I would like to build a website using ASP.NET. I would like website visitors to be able to download code that I would like to make available to them and that would be residing on my...
28
by: Steven Bethard | last post by:
Ok, I finally have a PEP number. Here's the most updated version of the "make" statement PEP. I'll be posting it shortly to python-dev. Thanks again for the previous discussion and suggestions!...
2
by: lghtslpr | last post by:
I have an imagemap with several hotspots, and I want a Google Maps-style "floating bubble" to appear when a hotspot is clicked. The bubble would contain some text, a picture, and a close button. I...
9
by: zxo102 | last post by:
Hi everyone, I am using a python socket server to collect data from a socket client and then control a image location ( wxpython) with the data, i.e. moving the image around in the wxpython frame....
1
by: xahlee | last post by:
Elisp Tutorial: Make Google Earth Xah Lee, 2006-12 This page shows a example of writing a emacs lisp function that creates a Google Earth file, and creates a link to the file, as well a link...
48
by: Nathan Sokalski | last post by:
Ever since I found out that they didn't give us a way to install both IE6 and IE7 on the same machine, I have been more frustrated and annoyed with Microsoft than I ever have been with any company...
5
by: allan.young | last post by:
Hi, When in gmail I'm composing a new email message and I bit the browser back button, I get a dialog that says "Your message has not been sent. Discard your message?" But if instead of...
5
by: jimmy | last post by:
Hi all, I want to capture the event when the browser's close button is clicked in an html page. I tried using the event.ClientX and event.ClientY property in the body unload event, and this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.