[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gridview with spinbox
[Thread Prev] | [Thread Next]
- Subject: Re: Gridview with spinbox
- From: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
- Date: Sat, 8 Mar 2025 00:44:04 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 3/8/25 10:53 AM, Shane Powell wrote:
hi I'm trying to make a spin box in a grid-view column with this code Dim spn As SpinBox = New SpinBox(GridView1) As "spnEditor" and then size it with spn.Expand = False spn.Move(GridView1.Current.X, GridView1.Current.Y, 20, 20) but when the program runs it expands to the size of GridView1 what am i doing wrong Cheers Shane.
I don't know what you're doing wrong or even the best way to accomplish that. But, the following code works as long as GridView1.Header = GridView.None.
[code] Public Sub Form_Open() Dim Panel1 As New Panel(FMain) As "Panel1" Dim GridView1 As New GridView(Panel1) As "GridView1" Dim spn As SpinBox = New SpinBox(Panel1) As "spnEditor" Panel1.X = 5 Panel1.Y = 5 Panel1.Width = 400 Panel1.Height = 300 GridView1.X = 0 GridView1.Y = 0 GridView1.Width = Panel1.ClientWidth GridView1.Height = Panel1.ClientHeight GridView1.Rows.Count = 1 GridView1.Columns.Count = 1 GridView1.Row = 0 GridView1.Column = 0 spn.Expand = False spn.Move(GridView1.Current.X, GridView1.Current.Y, 20, 20) End [/code] -- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
Gridview with spinbox | Shane Powell <buster6seven@xxxxxxxxx> |