Page 1 of 1

TGET in insert mode

Posted: Wed Nov 13, 2013 1:37 pm
by David Williams
Is it possible to have a get control in insert mode when focused, along with the normal caret? In other words not having to press the insert key with the resulting blocky caret.

TIA
David

Re: TGET in insert mode

Posted: Wed Mar 25, 2015 12:57 pm
by cdmmaui
Dear David,

Did you find a solution for this request?

Sincerely,

Re: TGET in insert mode

Posted: Wed Mar 25, 2015 1:06 pm
by nageswaragunupudi
I hope you might have tried

Code: Select all

oGet:bGotFocus := { || Set( SET_INSERT, .t. ) }
 

Re: TGET in insert mode

Posted: Wed Mar 25, 2015 3:31 pm
by Antonio Linares
Darrell,

If you call this ath the beginning of your app:

TGet():lChangeCaret = .F.

Then the GETs will not change their carets.

Re: TGET in insert mode

Posted: Wed Mar 25, 2015 10:32 pm
by cdmmaui
Thanks Antonio

Re: TGET in insert mode

Posted: Thu Mar 26, 2015 3:55 am
by cdmmaui
Hi Antonio,

I inserted code however it did not work.

Re: TGET in insert mode

Posted: Thu Mar 26, 2015 7:20 am
by Antonio Linares
Darrell,

What FWH version are you using ?

Here it is working fine

Re: TGET in insert mode

Posted: Thu Mar 26, 2015 12:00 pm
by cdmmaui
Dear Antonio,

I am using 14.09

I found the code below and added to program and it is working now.

set(_SET_INSERT, .T.)

Sincerely,

Re: TGET in insert mode

Posted: Thu Mar 26, 2015 3:59 pm
by Antonio Linares
very good :-)

Re: TGET in insert mode

Posted: Sun Mar 29, 2015 12:00 pm
by David Williams
Hi Darrell

I have being away for a week (downtime :) ) and missed your post.

I see you have the solution already, I have converted one of my applications and the clients are happy :D

Cheers
David