Cursor

Cursor

Postby MarcoBoschi » 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: Select all  Expand view
#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
User avatar
MarcoBoschi
 
Posts: 1016
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Cursor

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8337
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Alfa DeltaBeta Gamma

Postby MarcoBoschi » 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?
User avatar
MarcoBoschi
 
Posts: 1016
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Alfa DeltaBeta Gamma

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8337
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Cursor

Postby MarcoBoschi » Sat Jul 23, 2011 2:32 pm

Maybe I use an old version?
When I stard this program the cursor is not thin!
User avatar
MarcoBoschi
 
Posts: 1016
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Cursor

Postby Enrico Maria Giordano » Sat Jul 23, 2011 2:39 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8337
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Cursor

Postby Enrico Maria Giordano » Sat Jul 23, 2011 2:40 pm

Or that you pressed INS key?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8337
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Cursor

Postby MarcoBoschi » Sat Jul 23, 2011 3: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
User avatar
MarcoBoschi
 
Posts: 1016
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Cursor

Postby Enrico Maria Giordano » Sat Jul 23, 2011 3:11 pm

Which FWH release are you using?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8337
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Cursor

Postby MarcoBoschi » Sat Jul 23, 2011 3:20 pm

October 2009
User avatar
MarcoBoschi
 
Posts: 1016
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Cursor

Postby Enrico Maria Giordano » Sat Jul 23, 2011 3: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
User avatar
Enrico Maria Giordano
 
Posts: 8337
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Cursor

Postby MarcoBoschi » Sat Jul 23, 2011 3: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
User avatar
MarcoBoschi
 
Posts: 1016
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Cursor

Postby Enrico Maria Giordano » Sat Jul 23, 2011 3: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
User avatar
Enrico Maria Giordano
 
Posts: 8337
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Cursor

Postby MarcoBoschi » Sat Jul 23, 2011 4: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
User avatar
MarcoBoschi
 
Posts: 1016
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Cursor

Postby Enrico Maria Giordano » Sat Jul 23, 2011 4:44 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8337
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 15 guests