Hi,
have somebody idea how to solve the checkbox inside of B4Xtable when users want to resize form...
Initial view look like:
When user drag form to left, checkbox (created like panel inside of table) will not stay in center of column:
Mycode:
need help...
have somebody idea how to solve the checkbox inside of B4Xtable when users want to resize form...
Initial view look like:
When user drag form to left, checkbox (created like panel inside of table) will not stay in center of column:
Mycode:
CheckBox inside of B4xTable:
' osvežimo prikaz podatkov
Private Sub RefreshTableGrid
Query = $"select SifOddelekID, SifOddelekCode, SifOddelekDescription, SifOddelekCreatedAtt, SifOddelekModifiedAtt, SifOddelekIsDeleted, SifOddelekIsNonActive
from SifOddelki
where isnull(SifOddelekIsDeleted,0) = 0
Order by SifOddelekID desc"$
Dim rs As ResultSet = Main.MsSql.ExecQuery(Query)
Dim row As List
row.Initialize
Do While rs.NextRow
row.Add(Array(rs.GetInt("SifOddelekID"), rs.GetString("SifOddelekCode"), rs.GetString("SifOddelekDescription"), rs.GetString("SifOddelekModifiedAtt"), rs.GetInt("SifOddelekIsNonActive") ))
Loop
rs.Close
Wait For (tableSifrant.SetData(row)) Complete (Unused As Boolean)
' mark as checkbox
For i = 1 To colNonActive.CellsLayouts.Size - 1
Dim p As B4XView = colNonActive.CellsLayouts.Get(i) '0 = header
Dim chk As CheckBox
chk.Initialize("chk")
p.AddView(chk, colNonActive.ComputedWidth / 2 - 20dip, tableSifrant.RowHeight / 2 - 20dip, 40dip, 40dip)
Next
tableSifrant.Refresh
End Sub
need help...