Search found 2056 matches

by BruceSteers
Tuesday 25th March 2025 12:15pm
Forum: Beginners
Topic: Tableview edit cell
Replies: 11
Views: 3054

Re: Tableview edit cell

Thanks, but is also not working, i can't see any editorbox or textbox. Make a sample project showing the problem Andreas and post it here. 1 of 2 things happen when you do that.... Either you find you cannot reproduce the problem in your example program and it helps you find where your main program...
by BruceSteers
Tuesday 25th March 2025 12:04pm
Forum: General
Topic: gb.db2 Order by
Replies: 41
Views: 19671

Re: gb.db2 Order by

Have a look here, it has already been fixed. https://lists.gambas-basic.org/archive/bugtracker/2025-03/0000064.html That was quick. I am impressed. :D Welcome to the cutting edge of gambas where any problems you find get fixed quickly :) Thanks to Benoit for fixing and thanks to you for reporting, ...
by BruceSteers
Sunday 23rd March 2025 3:51pm
Forum: Beginners
Topic: Tableview edit cell
Replies: 11
Views: 3054

Re: Tableview edit cell

I think we will need an example project.

seems to work as expected here so we need to figure out why it's not for you.

Does the Textbox to edit the fields actually appear?
I suspect editing is somehow broken as you say "nothing happens"
by BruceSteers
Sunday 23rd March 2025 3:41pm
Forum: Beginners
Topic: Tableview edit cell
Replies: 11
Views: 3054

Re: Tableview edit cell

Try this to test it's actually using a textbox...


    TableView1.Edit

  Debug TableView1.Editor


it should print something like..
Form1.TableView1_Click.47: (TextBox 0x565b829f8028)

Maybe its not using a textbox as it also can use combobox?
by BruceSteers
Sunday 23rd March 2025 3:35pm
Forum: Beginners
Topic: Tableview edit cell
Replies: 11
Views: 3054

Re: Tableview edit cell

i just updated to latest gambas and tried this code...

Public Sub TableView1_Click()

 Dim tb As TextBox

  If TableView1.Column = 0 Then 
    TableView1.Edit
    tb = TableView1.Editor
    tb.SelectAll
  Endif

End


Works as expected, text is selected.
I'm not sure why it is not working for you.
by BruceSteers
Sunday 23rd March 2025 3:13pm
Forum: Beginners
Topic: Tableview edit cell
Replies: 11
Views: 3054

Re: Tableview edit cell

I get Tableview.editor is read only. Aah yes sorry i confused it with EditWith method. TableView.Editor is for getting the control used with TableView.EditWith() TableView.Edit Maybe whoever wrote that example can explain what it's doing. I'm guessing it's using TableView default editor that is pro...
by BruceSteers
Sunday 23rd March 2025 2:52pm
Forum: Beginners
Topic: Tableview edit cell
Replies: 11
Views: 3054

Re: Tableview edit cell

But TextBox1 is not created

You must create it.
   Dim TextBox1 As Textbox
  TextBox1 = New TextBox(Me)
  TextBox1.Visible = False



And TextBox1 = TableView1.Editor seems backwards

it should be

TableView1.Editor = TextBox1
by BruceSteers
Sunday 23rd March 2025 1:47pm
Forum: General
Topic: Label Control to JPEG
Replies: 4
Views: 1127

Re: Label Control to JPEG

You could just make a picture of the text. '' Convert label into a picture, '' use TextSize boolean to make the picture be the size of the text or the picture is a copy of the label as seen Public Sub Label2Picture(hLabel As Label, Optional TextSize As Boolean) As Picture Dim hPic As Picture ' size ...
by BruceSteers
Sunday 23rd March 2025 12:02pm
Forum: General
Topic: GridView Row Merge
Replies: 2
Views: 308

Re: GridView Row Merge

if you set a gridview columns width to -1 it will auto expand/shrink to fully show the text.

GridView1.Columns[2].Width = -1
by BruceSteers
Saturday 22nd March 2025 11:55am
Forum: General
Topic: Multiple pictures in controls
Replies: 3
Views: 227

Re: Multiple pictures in controls

No worries :) Here's my function from my VBoxMounter program that does it dynamically adding an svg logo icon and maybe a couple of other icons if required. The picture is then used in a the GridView Public Sub GetImage(VM As VBoxUnit) As Picture Dim sFind As String = vm.Name &/ vm.Path Dim sp A...