Cursor

User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Cursor

Post 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
Marco Boschi
info@marcoboschi.it
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Cursor

Post 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
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Alfa DeltaBeta Gamma

Post 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?
Marco Boschi
info@marcoboschi.it
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Alfa DeltaBeta Gamma

Post 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
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Re: Cursor

Post by MarcoBoschi »

Maybe I use an old version?
When I stard this program the cursor is not thin!
Marco Boschi
info@marcoboschi.it
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Cursor

Post 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
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Re: Cursor

Post 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
Marco Boschi
info@marcoboschi.it
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Re: Cursor

Post by MarcoBoschi »

October 2009
Marco Boschi
info@marcoboschi.it
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Cursor

Post 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
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Re: Cursor

Post 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
Marco Boschi
info@marcoboschi.it
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Cursor

Post 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
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Re: Cursor

Post 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
Marco Boschi
info@marcoboschi.it
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Cursor

Post by Enrico Maria Giordano »

As you noted, there is no a standard behavior. Personally I would prefer to completely remove the overwrite mode.

EMG
Post Reply