Re: xp cursor as Windows Caret


Subject: Re: xp cursor as Windows Caret
From: Mike Nordell (tamlin@algonet.se)
Date: Tue May 09 2000 - 02:13:16 CDT


Martin Sevior wrote:
> On Mon, 8 May 2000, Mike Nordell wrote:
>
> > > Would you like to work on a Windows fix?
> >
> > If you think that about 30 seconds worth of extra coding (when the
> > mentioned two functions in View are present) is "work", well, yes.
:-)
> >
>
> Its a lot more work than that!
[long log of Unix files patched]

Hah! It's not! :-)

The patch goes into AP_Win32Frame::_DocumentWndProc and looks like

    case WM_SETFOCUS:
        static_cast<FV_View*>(pView)->setFocus()
        return 0;

    case WM_KILLFOCUS:
        static_cast<FV_View*>(pView)->killFocus();
        return 0;

That's it. Since I have the code commented out at my machine, I'd say its
30 seconds to remove the comments _and_ compile it. :-)

There seems to be a rather big difference between X and Win32 regarding
focus handling.

/Mike - please only post follow-ups to the list



This archive was generated by hypermail 2b25 : Tue May 09 2000 - 01:14:24 CDT