Page 2 of 2

Re: Cursor

Posted: Sat Jul 23, 2011 5:08 pm
by MarcoBoschi
Thanks again
Now I will try a solution
marco

Re: Cursor

Posted: Mon Jul 25, 2011 5:14 am
by nageswaragunupudi
Cursor behavior in FiveWin has been consistent from the time FiveWin was first released.

Fivewin was born to provide migration of the old clipper programs to Windows and tried to provide maximum possible compatibility with the old clipper dos programs.

In the old dos programs, INSERT was off by default. Normal cursor was a thin underline and insert cursor was a block cursor. Fivewin's behavior was very close to the old DOS clipper programs' look and behavior. I think that this was the reason for Mr. Antonio's choice of cursor shapes and insert defaults. Even today we see here many programmers still keep the same dos style of programming with function keys, etc., understandably to retain their legacy dos programs to behave the same way after conversion to windows.

It is a valid expectation that fivewin's interface should be consistent with other standard Windows software. While toggling between insert and overwrite mode is not available on all software, where it is available, hair line cursor indicates insert mode and block cursor indicates overwrite mode. This is just the opposite of FW behavior.

While we can ask Mr Antonio to change this behavior, I guess he may not agree because such a change would change the behavior of hundreds of fivewin software being used by several users in the field and any change is bound to confuse the present users.

If we like to provide our software differently we need to change the TGet program link it with our software.

I do not know if FW team would like to provide a toggle for the choice of cursors.

Undo: This feature already exists along with cut. copy and paste.

Re: Cursor

Posted: Wed Jul 27, 2011 10:10 am
by kennedyv
You need make a copy of the original FiveWin source in file SOURCE\CLASSES\TGET.PRG and amend methods KeyDown and GotFocus

Replace the line that reads
CreateCaret( ::hWnd, 0, 2, ::nGetChrHeight() )
with
CreateCaret( ::hWnd, 0, 6, ::nGetChrHeight() - 1 )
and vice versa.

Now compile and link the new TGET.PRG with your application.

This has the disadvantage that you have to repeat this process everytime you update your version of FiveWin

Re: Cursor

Posted: Wed Jul 27, 2011 11:37 am
by MarcoBoschi
OK
Thank you very much

marco