English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I mean whatever window is open, in most any spot, when you click the cursor, it initiates a new command.

2007-03-12 06:35:42 · 1 answers · asked by charlie k 1 in Computers & Internet Programming & Design

1 answers

Okay.From your question you need to look back into event based Programming. The next thing you need to look into is Window messaging systems and Object inter communication.
These concepts are used when programming GUI for eg in Operating Systems like Windows et all.

When the mouse is moved its co-ordinates are scanned and kept in memory.
When a Click is made the OS checks with the Open Windows in the Order its touched(Order of recent visit) to see which window has its co-ordinates where the mouse cliecked.Based on this a Message is sent and the Window Code receives the message.Its the Window or the program now which has to handle the window message.
By Default if there is no Window then OS takes care of that .
Thats how you get the Refresh menu on right click on Windows on desktop. Not in any other case.


I hope i got your question correctly as it is very vague.Cursor can also mean Database Cursors. But i dont think u mean that. My first lines are more improtant if you wish to pursue these concepts and learn more..Try Googling.

2007-03-12 07:06:19 · answer #1 · answered by Satya 3 · 0 0

fedest.com, questions and answers