A little help?
Posted
#1
(In Topic #329)
Trainee
It was default in earlier versions (of the os or gambas3, I do not know)..
Posted
Guru

Attached is an example of how to edit cells in a TableView.
I hope it helps.
Posted
Trainee
Though the code does not provide any help.
All I want to do is to select the text inside a cell when I click on it by default. So whatever I type overwrites the content.
No problems before I upgraded from debian 9 to 10 (I might be mistaken here) - or maybe the libraries changed in gambas during that time. This problem I have seems to be new.
It looks trival, but could not solve it.
Posted
Guru

Posted
Regular

The Editor property gives access to this control, and after assigning it to a textbox, I could see the selection members.
Code
Public Sub TableView1_Click()
Dim editor As TextBox
TableView1.Edit()
editor = TableView1.Editor
editor.SelectAll()
End
Posted
Guru

Posted
Regular

I just stepped through the list in the TableView properties 'intellisense' in the IDE until I found something that sounded useful. The selection properties were not visible in there, but I suspected that if I assigned the property to a control variable, the selection properties would be there.
It (editor property) is also not mentioned in the PDF books 'GAMBAS from Zip' or 'A Beginner's Guide to Gambas' as far as I can tell. However those two are a good place to start if the help index is silent. And then of course are all the examples which you and others have posted – that's been invaluable.
Posted
Guru

Posted
Regular

As for Action, I'd accept the offer, except it might make a good post in the general forum. Thnaks,
Steve
Posted
Trainee
Any ideas?
1 guest and 0 members have just viewed this.


