FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Cursor
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Cursor
Posted: Sat Jul 23, 2011 05:08 PM

Thanks again
Now I will try a solution
marco

Marco Boschi
info@marcoboschi.it
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Cursor
Posted: Mon Jul 25, 2011 05:14 AM

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.

Regards



G. N. Rao.

Hyderabad, India
Posts: 8
Joined: Fri Nov 23, 2007 09:19 PM
Re: Cursor
Posted: Wed Jul 27, 2011 10:10 AM

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

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Cursor
Posted: Wed Jul 27, 2011 11:37 AM

OK
Thank you very much

marco

Marco Boschi
info@marcoboschi.it

Continue the discussion