FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse Text editing wish list
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
xBrowse Text editing wish list
Posted: Thu Apr 26, 2012 06:51 PM

To All

Is there a way to modify xBrowse to do two things ..

1- On EDIT_GET to have the cursor move to position 0 or to the beginning of the text field
2 - Instead of overstrike when editing the text .. have the text insert turned on .. that way when you make a change to the field .. you do not over write the text .. just togle insert ?

Thanks
Rick Lipkin

Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: xBrowse Text editing wish list
Posted: Thu Apr 26, 2012 09:49 PM
Rick:

For your second question, I use this code with TSBrowse, perhaps it can help you
with TXBrowse on EDIT method.

Code (fw): Select all Collapse
oBrw:aColumns[ 2]:bPrevEdit := { | uVar | Set( _SET_INSERT, ! Set( _SET_INSERT ) )}


Best regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xBrowse Text editing wish list
Posted: Fri Apr 27, 2012 12:59 PM

Armando

Thank you for your suggestion .. there does not appear to be a prepostget code block in xBrowse unless I have just missed it ?

I am still trying to come up with a solution and will share it when I get an answer.

Rick Lipkin

Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: xBrowse Text editing wish list
Posted: Fri Apr 27, 2012 02:47 PM
Rick:

Perhaps in ONPREVEDIT Method,

Code (fw): Select all Collapse
oBrw:aColumns[ 2]:bOnPrevEdit := { | uVar | Set( _SET_INSERT, ! Set( _SET_INSERT ) )}


Just an idea.

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xBrowse Text editing wish list
Posted: Fri Apr 27, 2012 03:27 PM

Armando

Thank you once again .. no such code block bOnPrevEdit exists in xBrowse :( :(

Rick

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse Text editing wish list
Posted: Fri Apr 27, 2012 09:00 PM

oCol:bOnPreEdit

Regards



G. N. Rao.

Hyderabad, India
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xBrowse Text editing wish list
Posted: Sat Apr 28, 2012 01:53 PM
Rao and Armando

Thank you both for your answers .. here is the solution to the long edit string using the bOnPreEdit code block. This takes the cursor to position 0.

Rick Lipkin

Code (fw): Select all Collapse
oLbxB:aCols[5]:bOnPreEdit  := { || __Keyboard( Chr( VK_HOME )) }

Continue the discussion