Thanks again
Now I will try a solution
marco
Cursor
- MarcoBoschi
- Posts: 925
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Contact:
Re: Cursor
Marco Boschi
info@marcoboschi.it
info@marcoboschi.it
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Cursor
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.
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
G. N. Rao.
Hyderabad, India
Re: Cursor
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
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
- MarcoBoschi
- Posts: 925
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Contact: