Hi,
I use SearchTemplate.
How can I do:
1. make the text of the scrollview = SetTextAlignment("CENTER","LEFT")? Can someone help me out? I tried a lot of GetPanel and GetView, but did not succeed.
2. I can change the SearchField width, but in the dialog this field is still to small. I Use
I need to make the SearchField the same width as the Dialog or CustomScrollView.
3. Is there a way to get the Index Of from the List of the SelectedItem of the Dialog? I use SetItems with a List. The List items are not unique, so I need to know the Index Of.
Hope someone knows.
Kind regards,
André
I use SearchTemplate.
How can I do:
1. make the text of the scrollview = SetTextAlignment("CENTER","LEFT")? Can someone help me out? I tried a lot of GetPanel and GetView, but did not succeed.
2. I can change the SearchField width, but in the dialog this field is still to small. I Use
B4X:
Sub btnTarief_Click
zknTarief.SearchField.HintText = "Zoektekst ...."
Zoektekst = zknTarief.SearchField.TextField
Zoektekst.Width=pnlExtras.Width/2
zknTarief.SearchField.TextField.Width=pnlExtras.Width/2
zknTarief.SearchField.Update
Wait For (zknDialog.ShowTemplate(zknTarief, "", "", "Annuleer")) Complete (Result As Int)
If Result = XUI.DialogResponse_Positive Then
btnTarief.xLBL.Text = zknTarief.SelectedItem
End If
End Sub
3. Is there a way to get the Index Of from the List of the SelectedItem of the Dialog? I use SetItems with a List. The List items are not unique, so I need to know the Index Of.
Hope someone knows.
Kind regards,
André
Last edited: