FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Cursor
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

Cursor

Posted: Sat Jul 23, 2011 10:32 AM
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/viewtopic.php?f=3&t=21989

King Regards
Marco


Code (fw): Select all Collapse
#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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Cursor

Posted: Sat Jul 23, 2011 11:01 AM

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

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

Alfa DeltaBeta Gamma

Posted: Sat Jul 23, 2011 11:19 AM

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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Alfa DeltaBeta Gamma

Posted: Sat Jul 23, 2011 12:32 PM
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
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

Re: Cursor

Posted: Sat Jul 23, 2011 02:32 PM

Maybe I use an old version?
When I stard this program the cursor is not thin!

Marco Boschi
info@marcoboschi.it
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Cursor

Posted: Sat Jul 23, 2011 02:39 PM

It maybe, but I don't think so. Are you sure you are not using a customized version of TGet class?

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Cursor

Posted: Sat Jul 23, 2011 02:40 PM

Or that you pressed INS key?

EMG

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

Re: Cursor

Posted: Sat Jul 23, 2011 03:10 PM

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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Cursor

Posted: Sat Jul 23, 2011 03:11 PM

Which FWH release are you using?

EMG

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

Re: Cursor

Posted: Sat Jul 23, 2011 03:20 PM

October 2009

Marco Boschi
info@marcoboschi.it
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Cursor

Posted: Sat Jul 23, 2011 03:28 PM

Very old, but I don't think that the cursor behavior is changed. Are you sure that you are not in insert mode?

EMG

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

Re: Cursor

Posted: Sat Jul 23, 2011 03:37 PM

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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Cursor

Posted: Sat Jul 23, 2011 03:46 PM

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

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

Re: Cursor

Posted: Sat Jul 23, 2011 04:02 PM

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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Cursor

Posted: Sat Jul 23, 2011 04:44 PM

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

EMG