I am having a problem with a drop event that I hope someone can help with. I have simplified the problem to the following...
I have a form that contains only two controls; a TableView and a TextArea. The text area is set to allow drop by default.
When I drag a file off my desktop into the text area it catches the file name and allows me to open it and load the contents to the text area but it leaves the headings in the table view fixed in that I can no longer resize the heading by dragging them with the mouse pointer. Everything else about the table view works ok.
This is all the code in FMain.Class
Code: Select all
' Gambas class file
Public Sub Form_Open()
TableView1.Columns.Count = 2
TableView1.Rows.Count = 2
TableView1.Columns[0].Text = "Heading 1"
TableView1.Columns[1].Text = "Heading 2"
TableView1[0, 0].Text = "123456"
TableView1[0, 1].Text = "abcdefg"
End
Public Sub TextArea1_Drop()
TextArea1.Text = Drag.Data
End