xBrowse Text editing wish list

xBrowse Text editing wish list

Postby Rick Lipkin » Thu Apr 26, 2012 6: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
User avatar
Rick Lipkin
 
Posts: 2642
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: xBrowse Text editing wish list

Postby Armando » Thu Apr 26, 2012 9:49 pm

Rick:

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

Code: Select all  Expand view

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
User avatar
Armando
 
Posts: 3103
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: xBrowse Text editing wish list

Postby Rick Lipkin » 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
User avatar
Rick Lipkin
 
Posts: 2642
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: xBrowse Text editing wish list

Postby Armando » Fri Apr 27, 2012 2:47 pm

Rick:

Perhaps in ONPREVEDIT Method,

Code: Select all  Expand view

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
User avatar
Armando
 
Posts: 3103
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: xBrowse Text editing wish list

Postby Rick Lipkin » Fri Apr 27, 2012 3:27 pm

Armando

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

Rick
User avatar
Rick Lipkin
 
Posts: 2642
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: xBrowse Text editing wish list

Postby nageswaragunupudi » Fri Apr 27, 2012 9:00 pm

oCol:bOnPreEdit
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10335
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse Text editing wish list

Postby Rick Lipkin » Sat Apr 28, 2012 1: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: Select all  Expand view

oLbxB:aCols[5]:bOnPreEdit  := { || __Keyboard( Chr( VK_HOME )) }
 
User avatar
Rick Lipkin
 
Posts: 2642
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], SantaCroya and 84 guests