Re: [Gambas-user] How to automatically select all text when first entering editable TableView cell?

2016-02-25 Thread T Lee Davidson
On 02/25/2016 04:29 PM, Fabien Bodard wrote: > The code below work well. It seem that the code in table view interact > after the activate event on the editor. So the workaround > is to do the selection after the event. That is what my code do > > > > ' Gambas class file > > Private hEditor As Text

Re: [Gambas-user] How to automatically select all text when first entering editable TableView cell?

2016-02-25 Thread Charlie
Sorry Fabien but your code does not work for me (GTK or QT4), The next selected cell's text is not 'selected' Have a look at the video attached. cinnamon-20160225-1.webm -- View this message in context: http://gambas.814

Re: [Gambas-user] How to automatically select all text when first entering editable TableView cell?

2016-02-25 Thread Jorge Carrión
The textbox1.select() without parameters doesn't work for me, despite what gambas help says. Passing the parameters works well... However, I must say that I haven't tested it on a tableview... Regards 2016-02-25 20:30 GMT+01:00 Charlie : > Hi Jorge, > I looked at you solution but have a couple o

Re: [Gambas-user] How to automatically select all text when first entering editable TableView cell?

2016-02-25 Thread Fabien Bodard
2016-02-25 20:30 GMT+01:00 Charlie : > Hi Jorge, > I looked at you solution but have a couple of points:- > 1/. To select all the text in a TextBox there is no need for any more than > *TextBox1.Select* Well it seem there is a problem with gtk for that. > 2/. Even if, having added a TextBox as an

Re: [Gambas-user] How to automatically select all text when first entering editable TableView cell?

2016-02-25 Thread Charlie
Hi Jorge, I looked at you solution but have a couple of points:- 1/. To select all the text in a TextBox there is no need for any more than *TextBox1.Select* 2/. Even if, having added a TextBox as an editor, you change T Lee's code to the below it doesn't work for me: - * TableView1.Editwith(TextBo

Re: [Gambas-user] How to automatically select all text when first entering editable TableView cell?

2016-02-25 Thread Jorge Carrión
That is very tricky. Just try this: Public Sub Form_Open() TextBox1.SetFocus() TextBox1.Select(0, Len(TextBox1.Text)) End 2016-02-25 18:00 GMT+01:00 Charlie : > I could not get Gambas to do this, that's not to say it can't. I noticed > that > pressing [Ctrl]+A selected the text so my solu

Re: [Gambas-user] How to automatically select all text when first entering editable TableView cell?

2016-02-25 Thread Charlie
I could not get Gambas to do this, that's not to say it can't. I noticed that pressing [Ctrl]+A selected the text so my solution is to get BASH to press [Ctrl]+A 1/. Download and install 'xdotool' 2/. Insert the following line after 'TableView1.Edit()' Shell "xdotool key ctrl+a" It worked for me.

[Gambas-user] How to automatically select all text when first entering editable TableView cell?

2016-02-24 Thread T Lee Davidson
I have a project with a TableView that has the cells of certain columns defined as editable since the content can change. The problem is when the user is editing a row and uses either ENTER or an arrow key to move to the next editable cell, any existing text in the cell gets in the way and need