Evening George, > The definition of each application window has a pointer to its hit routine. > Users can use that either to call WM_MHIT directly or to do something else. > This is more flexible than simply having WM_MHIT called internally. Yes, I understand that (now). Thanks.
>> I suppose that a PE application could be written in such a way as to use >> a SCR_ channel for normal program output (my HIT counter for example) >> rather than using a dedicated sub-window, however, I'm not sure what >> would happen if I did so, and then moved it around the screen! > I would not advise this! You may not be able to set this new window outside > the limits already set by the PE software. That is, however you define the > SCR window, it may appear inside the current PE limits of your program. Probably best I don't attempt this then, especially as I'd have to figure out a way of opening the SCR_ channel to a location on the screen that is in absolute positioning while my application will most likely be drawn at the current pointer position. How to marry the two! >> Maybe an information window would be a better idea. Worth investigating >> I suspect. > I am sure that information windows are a better bet. However, with an > application window you have the possibility of having a different pointer for > your window. That would be more difficult for an information window. I think > I almost always use information windows for displaying - - - er - - > information. Well, I know I can print easily to an information window, I've done it for years (or was that years ago?) in Easymenu developed programs in SuperBasic. As long as I remembered to set the channel to the information window before printing! I think the use of an application sub-window for program output is acceptable and do-able, just the fact that the code in the hit routine gets called so frequently means that the code is going to have to be extremely efficient and not do any processing it doesn't have to. I feel a lot more experimenting coming on! Cheers, Norman. -- Norman Dunbar Dunbar IT Consultants Ltd Registered address: Thorpe House 61 Richardshaw Lane Pudsey West Yorkshire United Kingdom LS28 7EL Company Number: 05132767 _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
