Sometimes we want to lock a TextItem from being editable. For example a primary key item.
References:
B4X:
Dim sf As Object = PrefDialog.ShowDialog(Data, "OK", "CANCEL")
If RowId > 0 Then
Dim pi As B4XPrefItem = PrefDialog.GetPrefItem("Item Code") ' <-- Disallow edit on Item Code
PrefDialog.CustomListView1.AnimationDuration = 0
If pi.ItemType = PrefDialog.TYPE_TEXT Then
Dim pnl As B4XView = PrefDialog.CustomListView1.GetPanel(0)
Dim ft As B4XFloatTextField = pnl.GetView(0).Tag
ft.mBase.Enabled = False
End If
End If
Wait For (sf) Complete (Result As Int)
[B4X] Cross platform Editable B4XTable + Form Example
This example demonstrates several things: Cross platform code and files, similar to the way XUI2D games are organized: All the logic is implemented in a class named EditableTable. The module is located in the projects parent folder. The two asset files (list of animals - source; and the...
www.b4x.com
[Solved] How to hide "cancel/confirm" buttons in TextItem of the B4XPreferencesDialog?
How I can hide this buttons? Thanks in advance for any tip.
www.b4x.com