Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #1357 > unrolled thread
| Started by | JoseMaria <jmespinosabaviera@yahoo.com> |
|---|---|
| First post | 2011-06-11 07:18 -0700 |
| Last post | 2011-06-14 08:38 -0700 |
| Articles | 11 — 6 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
bBrowser 3.0 cell edit JoseMaria <jmespinosabaviera@yahoo.com> - 2011-06-11 07:18 -0700
Re: bBrowser 3.0 cell edit "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2011-06-11 19:29 +0200
Re: bBrowser 3.0 cell edit Camille Kater <katercamXXX@pt.lu> - 2011-06-11 21:01 +0200
Re: bBrowser 3.0 cell edit JoseMaria <jmespinosabaviera@yahoo.com> - 2011-06-12 11:42 -0700
Re: bBrowser 3.0 cell edit Camille Kater <katercamXXX@pt.lu> - 2011-06-12 21:18 +0200
Re: bBrowser 3.0 cell edit "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-06-12 23:38 +0000
Re: bBrowser 3.0 cell edit JoseMaria <jmespinosabaviera@yahoo.com> - 2011-06-13 08:44 -0700
Re: bBrowser 3.0 cell edit "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-06-14 02:17 +1000
Re: bBrowser 3.0 cell edit "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-06-13 22:13 +0000
Re: bBrowser 3.0 cell edit Joachim Bieler <support@votools.com> - 2011-06-14 07:56 +0200
Re: bBrowser 3.0 cell edit JoseMaria <jmespinosabaviera@yahoo.com> - 2011-06-14 08:38 -0700
| From | JoseMaria <jmespinosabaviera@yahoo.com> |
|---|---|
| Date | 2011-06-11 07:18 -0700 |
| Subject | bBrowser 3.0 cell edit |
| Message-ID | <e1edebea-b3c5-46c0-b183-73030a2988bc@v8g2000yqb.googlegroups.com> |
Hello, I upgraded several months ago from VO2.7+bbrowser 2.7 to VO2.8SP3+bBrowser 3. The change has been in general for the better as 5333 crashes have died out. There is however one thing which I liked better in the previous version: when a user was editing a bbrowser grid and he was on a cell containing a string, by default the cell content was selected (in blue), and if he wanted to change the string, he could type the right arrow (of the 4 mouvement arrows in the keyboard) and he could edit the string. So if he wanted to make a small change he did not need to retype the whole string, just change whatever was needed. Now in the new version, again the cell content is selected when he reaches a cell in blue (which is right) but if the user types the right arrow he goes to the cell in the right, he does not go to edit the cell content. There is a solution: he can click on the cell with the mouse and then he can edit the cell content, but this is much slower as he cannot do it with the keyboard. Please your help is much appreciated, as users say this makes them lose time.
[toc] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2011-06-11 19:29 +0200 |
| Message-ID | <95hndhF7luU1@mid.individual.net> |
| In reply to | #1357 |
Hi JoseMaria, I can't see a difference betwen VO 2.7/bBr 2.0 and VO 2.8/bBr 3. Check your setting oDCbBrowser:AutoEdit := ??? Whatever That has a influence to the behaviour. Regards Urs "JoseMaria" <jmespinosabaviera@yahoo.com> schrieb im Newsbeitrag news:e1edebea-b3c5-46c0-b183-73030a2988bc@v8g2000yqb.googlegroups.com... > Hello, > > I upgraded several months ago from VO2.7+bbrowser 2.7 to > VO2.8SP3+bBrowser 3. The change has been in general for the better as > 5333 crashes have died out. > > There is however one thing which I liked better in the previous > version: when a user was editing a bbrowser grid and he was on a cell > containing a string, by default the cell content was selected (in > blue), and if he wanted to change the string, he could type the right > arrow (of the 4 mouvement arrows in the keyboard) and he could edit > the string. So if he wanted to make a small change he did not need to > retype the whole string, just change whatever was needed. > > Now in the new version, again the cell content is selected when he > reaches a cell in blue (which is right) but if the user types the > right arrow he goes to the cell in the right, he does not go to edit > the cell content. There is a solution: he can click on the cell with > the mouse and then he can edit the cell content, but this is much > slower as he cannot do it with the keyboard. > > Please your help is much appreciated, as users say this makes them > lose time.
[toc] | [prev] | [next] | [standalone]
| From | Camille Kater <katercamXXX@pt.lu> |
|---|---|
| Date | 2011-06-11 21:01 +0200 |
| Message-ID | <1307819258_313@vo.lu> |
| In reply to | #1357 |
Hi, There's a difference between 2.7 and bBrowser3: From the help menu: Important note! The access bBrowser:AutoEdit is replaced by the accesses bBrowser:EditStartFlags and bBrowser:EditCloseFlagsand should not be used any more. If a value is assigned to bBrowser:AutoEdit, then the corresponding flags are set automatically for bBrowser:EditStartFlags and bBrowser:EditCloseFlags. bBrowser:EditStartFlags defines which mouse or keyboard actions start a cell edit. The following flags are supported: Flag Description BESF_NONE The flag does not have a meaning and can be used to remove already defined flags. BESF_ONKEY_RETURN Cell editing is started if RETURN key is pressed. BESF_ONKEY_CHAR Cell editing is started if a character key (for example 0..9 and A..Z) is pressed. BESF_ONKEY_F2 Cell editing is started if the F2 key is pressed. BESF_ONMOUSE_BUTTONDOWN Cell editing is started if the left mouse button is single clicked. BESF_ONMOUSE_DOUBLECLICK Cell editing is started if the left mouse button is double clicked. BESF_PERMANENT Cell editing is immediately started if the table cursor is moved on a editable cell. After creating a bBrowser control, the access contains the flags below: · BESF_ONKEY_RETURN BESF_ONMOUSE_DOUBLECLICK So please check the methods EditStartFlags and EditCloseFlags Camille On 11/06/2011 16:18, JoseMaria wrote: > Hello, > > I upgraded several months ago from VO2.7+bbrowser 2.7 to > VO2.8SP3+bBrowser 3. The change has been in general for the better as > 5333 crashes have died out. > > There is however one thing which I liked better in the previous > version: when a user was editing a bbrowser grid and he was on a cell > containing a string, by default the cell content was selected (in > blue), and if he wanted to change the string, he could type the right > arrow (of the 4 mouvement arrows in the keyboard) and he could edit > the string. So if he wanted to make a small change he did not need to > retype the whole string, just change whatever was needed. > > Now in the new version, again the cell content is selected when he > reaches a cell in blue (which is right) but if the user types the > right arrow he goes to the cell in the right, he does not go to edit > the cell content. There is a solution: he can click on the cell with > the mouse and then he can edit the cell content, but this is much > slower as he cannot do it with the keyboard. > > Please your help is much appreciated, as users say this makes them > lose time.
[toc] | [prev] | [next] | [standalone]
| From | JoseMaria <jmespinosabaviera@yahoo.com> |
|---|---|
| Date | 2011-06-12 11:42 -0700 |
| Message-ID | <8b7fbd68-00a6-49a5-89f0-5064fb27ec5c@25g2000yqn.googlegroups.com> |
| In reply to | #1359 |
Great !! by using bBrowser:EditStartFlags and bBrowser:EditCloseFlagsand I have been able to replicate the behaviour I had in previous version. Thank you very much. One thing more, well maybe this is not possible but I say it nonetheless in case somebody knows: When I press the right arrow key (of the 4 mouvement keys) the cell edit begins and the cursor is positioned at the beginning of the string. Would it be possible to change some parameter which makes the cell edit start with cursor positioned at the end of the string ? Jose Maria
[toc] | [prev] | [next] | [standalone]
| From | Camille Kater <katercamXXX@pt.lu> |
|---|---|
| Date | 2011-06-12 21:18 +0200 |
| Message-ID | <1307906737_315@vo.lu> |
| In reply to | #1363 |
Jose Maria,
Maybe you could use the Selection function.
In your browser use a customized SingleLineEdit class with
Selection{len(string),len(string)} // start,end of your string
Camille
On 12/06/2011 20:42, JoseMaria wrote:
>
> Great !! by using bBrowser:EditStartFlags and
> bBrowser:EditCloseFlagsand I have been able to replicate the behaviour
> I had in previous version.
>
> Thank you very much.
>
> One thing more, well maybe this is not possible but I say it
> nonetheless in case somebody knows: When I press the right arrow key
> (of the 4 mouvement keys) the cell edit begins and the cursor is
> positioned at the beginning of the string.
> Would it be possible to change some parameter which makes the cell
> edit start with cursor positioned at the end of the string ?
>
> Jose Maria
[toc] | [prev] | [next] | [standalone]
| From | "Geoff Schaller" <geoffx@softwarexobjectives.com.au> |
|---|---|
| Date | 2011-06-12 23:38 +0000 |
| Message-ID | <4df54dea$0$34828$c30e37c6@exi-reader.telstra.net> |
| In reply to | #1363 |
Jose, You can assign the correct Focus Select define to the edit control bBrowser uses in the cell.bBrowser gives you access to that edit control. In fact, you can supply your own edit control - which is probably better - so that you can set all the styles you would like in advance. Geoff "JoseMaria" <jmespinosabaviera@yahoo.com> wrote in message news:8b7fbd68-00a6-49a5-89f0-5064fb27ec5c@25g2000yqn.googlegroups.com: > Great !! by using bBrowser:EditStartFlags and > bBrowser:EditCloseFlagsand I have been able to replicate the behaviour > I had in previous version. > > Thank you very much. > > One thing more, well maybe this is not possible but I say it > nonetheless in case somebody knows: When I press the right arrow key > (of the 4 mouvement keys) the cell edit begins and the cursor is > positioned at the beginning of the string. > Would it be possible to change some parameter which makes the cell > edit start with cursor positioned at the end of the string ? > > Jose Maria
[toc] | [prev] | [next] | [standalone]
| From | JoseMaria <jmespinosabaviera@yahoo.com> |
|---|---|
| Date | 2011-06-13 08:44 -0700 |
| Message-ID | <629fbeaa-02d0-4ede-a8fa-6e5724495553@o10g2000prn.googlegroups.com> |
| In reply to | #1365 |
Geoff, Where in the source code can I change this ?. I suppose it is inside the METHOD CellEdit( oEvent ) Thanks Jose Maria On Jun 13, 1:38 am, "Geoff Schaller" <geo...@softwarexobjectives.com.au> wrote: > Jose, > > You can assign the correct Focus Select define to the edit control > bBrowser uses in the cell.bBrowser gives you access to that edit > control. In fact, you can supply your own edit control - which is > probably better - so that you can set all the styles you would like in > advance. > > Geoff > > "JoseMaria" <jmespinosabavi...@yahoo.com> wrote in message > > news:8b7fbd68-00a6-49a5-89f0-5064fb27ec5c@25g2000yqn.googlegroups.com: > > > > > Great !! by using bBrowser:EditStartFlags and > > bBrowser:EditCloseFlagsand I have been able to replicate the behaviour > > I had in previous version. > > > Thank you very much. > > > One thing more, well maybe this is not possible but I say it > > nonetheless in case somebody knows: When I press the right arrow key > > (of the 4 mouvement keys) the cell edit begins and the cursor is > > positioned at the beginning of the string. > > Would it be possible to change some parameter which makes the cell > > edit start with cursor positioned at the end of the string ? > > > Jose Maria- Hide quoted text - > > - Show quoted text -
[toc] | [prev] | [next] | [standalone]
| From | "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> |
|---|---|
| Date | 2011-06-14 02:17 +1000 |
| Message-ID | <DGqJp.6493$aH5.131@viwinnwfe02.internal.bigpond.com> |
| In reply to | #1378 |
> Where in the source code can I change this ?. Simply you don't change the bBrowser source at all. Have a look at the bBrowser samples to see how its done. CYA Steve
[toc] | [prev] | [next] | [standalone]
| From | "Geoff Schaller" <geoffx@softwarexobjectives.com.au> |
|---|---|
| Date | 2011-06-13 22:13 +0000 |
| Message-ID | <4df68ba6$0$34826$c30e37c6@exi-reader.telstra.net> |
| In reply to | #1378 |
Source code? Like Steve says, READ THE SAMPLES <g>. ...and read the Help. It's all there. bBrowser has methods which allow you to create and supply your edit control to the CellEdit process and/or gives you access at runtime to the control so used. If this is all not enough then sure, go to the source code, in which case, look at the bBrowser:CellEdit() method. Geoff "JoseMaria" <jmespinosabaviera@yahoo.com> wrote in message news:629fbeaa-02d0-4ede-a8fa-6e5724495553@o10g2000prn.googlegroups.com: > Geoff, > > Where in the source code can I change this ?. > > I suppose it is inside the METHOD CellEdit( oEvent ) > > Thanks > Jose Maria > > On Jun 13, 1:38 am, "Geoff Schaller" > <geo...@softwarexobjectives.com.au> wrote: > > > Jose, > > > > You can assign the correct Focus Select define to the edit control > > bBrowser uses in the cell.bBrowser gives you access to that edit > > control. In fact, you can supply your own edit control - which is > > probably better - so that you can set all the styles you would like in > > advance. > > > > Geoff > > > > "JoseMaria" <jmespinosabavi...@yahoo.com> wrote in message > > > > news:8b7fbd68-00a6-49a5-89f0-5064fb27ec5c@25g2000yqn.googlegroups.com: > > > > > > > > > > Great !! by using bBrowser:EditStartFlags and > > > bBrowser:EditCloseFlagsand I have been able to replicate the behaviour > > > I had in previous version. > > > > > Thank you very much. > > > > > One thing more, well maybe this is not possible but I say it > > > nonetheless in case somebody knows: When I press the right arrow key > > > (of the 4 mouvement keys) the cell edit begins and the cursor is > > > positioned at the beginning of the string. > > > Would it be possible to change some parameter which makes the cell > > > edit start with cursor positioned at the end of the string ? > > > > > Jose Maria- Hide quoted text - > > > > > - Show quoted text -
[toc] | [prev] | [next] | [standalone]
| From | Joachim Bieler <support@votools.com> |
|---|---|
| Date | 2011-06-14 07:56 +0200 |
| Message-ID | <95obg4Fh0gU1@mid.individual.net> |
| In reply to | #1363 |
Hi Jose Maria,
please try the code below:
method CellEdit(oEvent) class myDataWindow
local iLen as dword
if oEvent:EditMode = BEDIT_SHOW
oEvent:EditControl:Show()
oEvent:EditControl:SetFocus()
iLen := SLen(RTrim(oEvent:EditControl:TextValue))
oEvent:EditControl:Selection := Selection{iLen, iLen}
endif
return
Please have a look at topic bBrowser:CellEdit() in the documentation for more information.
Regards,
Joachim Bieler
Am 12.06.2011 20:42, schrieb JoseMaria:
> Great !! by using bBrowser:EditStartFlags and
> bBrowser:EditCloseFlagsand I have been able to replicate the behaviour
> I had in previous version.
>
> Thank you very much.
>
> One thing more, well maybe this is not possible but I say it
> nonetheless in case somebody knows: When I press the right arrow key
> (of the 4 mouvement keys) the cell edit begins and the cursor is
> positioned at the beginning of the string.
> Would it be possible to change some parameter which makes the cell
> edit start with cursor positioned at the end of the string ?
>
> Jose Maria
[toc] | [prev] | [next] | [standalone]
| From | JoseMaria <jmespinosabaviera@yahoo.com> |
|---|---|
| Date | 2011-06-14 08:38 -0700 |
| Message-ID | <14dbaab9-1c32-4d80-87a4-0541c45ce316@s9g2000yqm.googlegroups.com> |
| In reply to | #1389 |
Thanks to all, I have been able to do it. I love this forum.
Jose Maria
On Jun 14, 7:56 am, Joachim Bieler <supp...@votools.com> wrote:
> Hi Jose Maria,
>
> please try the code below:
>
> method CellEdit(oEvent) class myDataWindow
> local iLen as dword
>
> if oEvent:EditMode = BEDIT_SHOW
> oEvent:EditControl:Show()
> oEvent:EditControl:SetFocus()
>
> iLen := SLen(RTrim(oEvent:EditControl:TextValue))
> oEvent:EditControl:Selection := Selection{iLen, iLen}
> endif
> return
>
> Please have a look at topic bBrowser:CellEdit() in the documentation for more information.
>
> Regards,
> Joachim Bieler
>
> Am 12.06.2011 20:42, schrieb JoseMaria:
>
>
>
> > Great !! by using bBrowser:EditStartFlags and
> > bBrowser:EditCloseFlagsand I have been able to replicate the behaviour
> > I had in previous version.
>
> > Thank you very much.
>
> > One thing more, well maybe this is not possible but I say it
> > nonetheless in case somebody knows: When I press the right arrow key
> > (of the 4 mouvement keys) the cell edit begins and the cursor is
> > positioned at the beginning of the string.
> > Would it be possible to change some parameter which makes the cell
> > edit start with cursor positioned at the end of the string ?
>
> > Jose Maria- Hide quoted text -
>
> - Show quoted text -
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web