Page 1 of 2

Cursor

Posted: Sat Jul 23, 2011 10:32 am
by MarcoBoschi
Hi,
Why the cursor aspect is big for insert mode and thin for replace mode?
It's exactly the opposite of many other programs I'm testing

This problem together with "undo" problem creates a lot of discomfort for users

http://forums.fivetechsupport.com/viewt ... =3&t=21989

King Regards
Marco

Code: Select all

#include "fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oGet1 , cGet1 := SPACE(100)
LOCAL oGet2 , cGet2 := SPACE(100)

DEFINE DIALOG oDlg FROM 10 , 10 TO 400 , 700 PIXEL

@ 10  , 1 GET oGet1 VAR cGet1 OF oDlg SIZE 200 , 20 PIXEL

@ 40 , 1 GET oGet2 VAR cGet2 OF oDlg SIZE 200 , 20 PIXEL

ACTIVATE DIALOG oDLg CENTER

RETURN NIL

Re: Cursor

Posted: Sat Jul 23, 2011 11:01 am
by Enrico Maria Giordano
Please, have a look at the URL textbox of you browser (mine is IE8): the cursor never change (it is thin) and the overwrite mode is never active).

EMG

Alfa DeltaBeta Gamma

Posted: Sat Jul 23, 2011 11:19 am
by MarcoBoschi
Enrico,
try my sample.
The cursos is posotioned at the beginnong of oGet1 and is not thin
If you Write "Alfa Gamma" and then you press ctrl-left the cursor goes to the letter "G" of Gamma
Type Beta now
The result is
Alfa Beta Gamma and the cursor is on "G"
If you press Insert the cursor become thin
Now press Delta
The final result is Alfa Beta Delta
Is it possible to have insert mode active and thin cursor?

Re: Alfa DeltaBeta Gamma

Posted: Sat Jul 23, 2011 12:32 pm
by Enrico Maria Giordano
MarcoBoschi wrote:Enrico,
try my sample.
The cursos is posotioned at the beginnong of oGet1 and is not thin
Tried: the cursor is at the beginning of oGet1 and is thin. :?:

EMG

Re: Cursor

Posted: Sat Jul 23, 2011 2:32 pm
by MarcoBoschi
Maybe I use an old version?
When I stard this program the cursor is not thin!

Re: Cursor

Posted: Sat Jul 23, 2011 2:39 pm
by Enrico Maria Giordano
It maybe, but I don't think so. Are you sure you are not using a customized version of TGet class?

EMG

Re: Cursor

Posted: Sat Jul 23, 2011 2:40 pm
by Enrico Maria Giordano
Or that you pressed INS key?

EMG

Re: Cursor

Posted: Sat Jul 23, 2011 3:10 pm
by MarcoBoschi
I'm using windows 7 64 bit
I have found only one tget.prg file in my pc
I dont' press ins key

Re: Cursor

Posted: Sat Jul 23, 2011 3:11 pm
by Enrico Maria Giordano
Which FWH release are you using?

EMG

Re: Cursor

Posted: Sat Jul 23, 2011 3:20 pm
by MarcoBoschi
October 2009

Re: Cursor

Posted: Sat Jul 23, 2011 3:28 pm
by Enrico Maria Giordano
Very old, but I don't think that the cursor behavior is changed. Are you sure that you are not in insert mode?

EMG

Re: Cursor

Posted: Sat Jul 23, 2011 3:37 pm
by MarcoBoschi
Enrico,
I'm sorry.

The original code of my sample is

#include "fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oGet1 , cGet1 := SPACE(100)
LOCAL oGet2 , cGet2 := SPACE(100)

SET( _SET_INSERT , .T. )


DEFINE DIALOG oDlg FROM 10 , 10 TO 400 , 700 PIXEL

@ 10 , 1 GET oGet1 VAR cGet1 OF oDlg SIZE 200 , 20 PIXEL

@ 40 , 1 GET oGet2 VAR cGet2 OF oDlg SIZE 200 , 20 PIXEL

ACTIVATE DIALOG oDLg CENTER

RETURN NIL

Because I want that the default state is "insert mode" and not "ovverride mode"

The problem was the cursor aspect different from other programs

Sorry again

marco

Re: Cursor

Posted: Sat Jul 23, 2011 3:46 pm
by Enrico Maria Giordano
Ok. The shape of the cursor is set inside TGet class. We have to ask to Antonio if he wants to change it. Antonio?

EMG

Re: Cursor

Posted: Sat Jul 23, 2011 4:02 pm
by MarcoBoschi
Enrico,
I tried to edit in a dozen different programs.
No program behaves like the fivewin example
Access: thin cursor insert, fat cursor override
Excel: the same as access
Oracle Virtal Box: thin cursor but If I press insert key this state does not change
IE, Google Chrome and many others are like Oracle Virtual Box is not possible to change insert mode
Why this choice was made?

Best regards
Marco

Re: Cursor

Posted: Sat Jul 23, 2011 4:44 pm
by Enrico Maria Giordano
As you noted, there is no a standard behavior. Personally I would prefer to completely remove the overwrite mode.

EMG