On 21 Jan 2011, at 12:58, Norman Dunbar wrote:

>> 
>> Commenting out WM_SWAPP is not a good idea. When I tried this program, or 
>> something very like it, HIT appeared in the main window. However, accessing 
>> the application window by a selection key caused HIT to appear in the 
>> application window. Obviously, the PE redefines the window area depending on 
>> where it finds the pointer.
> Well, in my example, if the pointer is outside of the sub-window,
> nothing happens to call the HIT code regardless. It's only a HIT when
> the pointer is within the sub-window area, or I press TAB to activate
> the sub-window.

In my window definition I set "A" to select the application window. So, 
pressing A when the pointer is outside the application window first sets the 
focus to the application window and then the hit routine is called.

George
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to