Android Question Expand B4XCombo box

gmoriwaki

Member
Licensed User
I have seen an example on expanding the combo box without selecting it, but its a little different with B4XCombo box.

When I run the following example, "A" shows in the box, but how do I show it expanded when I run it?

B4X:
#Region Shared Files
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
#End Region

'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip

Sub Class_Globals
    Private Root As B4XView
    Private xui As XUI
    Private B4XComboBox1 As B4XComboBox
End Sub

Public Sub Initialize
'    B4XPages.GetManager.LogEvents = True
End Sub

'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
    
    Dim items As List
    items.Initialize
    items.Add("A")
    items.Add("B")
    items.Add("C")

    B4XComboBox1.SetItems(items)

End Sub

Private Sub Button1_Click
    xui.MsgboxAsync("Hello world!", "B4X")
End Sub
 

Mahares

Expert
Licensed User
Longtime User

Attachments

  • B4XListTemplate062121.png
    B4XListTemplate062121.png
    20.7 KB · Views: 176
Upvote 0
Top