I can't upload my project.
You will see 3 panels.
pnlTranslate contains the customlistview.
pnlTranslate contains the Ok and Cancel buttons
pnlComparison contains Next, Previous and (3 spinners as shown).
My codes as following
B4X:
Sub clvComparison_ItemClick (Index As Int, Value As Object)
WhatIndex = Index
lWhatWords.Initialize
lWhatWords = Deciphering.FilterParseHBTextforTab(Value)
clvTranslate.Clear
' clvTranslate.AsView.BringToFront
For i = 0 To lWhatWords.Size - 1
Dim HebDetectWord As String
HebDetectWord = lWhatWords.Get(i)
If HebDetectWord.Length > 0 Then
clvTranslate.Add(CreateListItem(lWhatWords.Get(i)), $"Item #${i}"$)
End If
Next
If clvTranslate.Size > 0 Then
pnlTranslate.Visible = True
pnlTranslate.BringToFront
pnlTranslateComponent.Visible = True
pnlTranslateComponent.BringToFront
' pnlComparison.Visible = False 'workaround something wrong with pnlTranslate not being top
chkSelectAll.Visible = True
chkSelectAll.Checked = False
clvTranslate.ScrollToItem(0)
End If
End Sub
you can see the picture that pnlComparison (next, previous and 3 spinners) is on top of pnlTranslate. The pnlTranslate with Customlistview should be on top of it. I coded the panels perfectly with left, top, width and height property. When i set pnlcomparison to false it works great, but i should not have to do that. The bringtoFront is not working.
Pic shown with pnlComparison = false
Last edited: