B4A Library [Library] ComboBox

HotShoe

Well-Known Member
Licensed User
Longtime User
Version 1.28 is attached in the first post. It adds the ItemLongClick event.

--- Jem
 

Stu Graham

Member
Licensed User
Longtime User
Sorry for the most basic of questions, but, can this control be added to a designer like the spinner control or button? Or does it have to be added via code, as in the example?

Thanks
Stu
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
can't understand why I can't add view with
B4X:
Activity.AddView(cb.AsView, 0, 0, 300dip, 40dip)
but I must put setLeft(...).

Please, explain.
 

Sberla

Active Member
Licensed User
Longtime User
hi hotshoe, your library is very usefull.. i have a problem with the event itemclick, when i press a item of the combobox list, the event doesn't start.. can you give me some help?

part of code:
dim dir as string
combo1.Initialize(Activity,Me,Null,combo1)

Sub combo1_ItemClick (Position As Int, Value As String)
If Value = "sdcard" Then
dir = File.DirInternal
Else
dir = File.DirRootExternal
End If
End Sub
 

HotShoe

Well-Known Member
Licensed User
Longtime User
Sorry for the most basic of questions, but, can this control be added to a designer like the spinner control or button? Or does it have to be added via code, as in the example?

It does need to be added in code and not through the designer.

but I must put setLeft(...).

Please, explain.

I do not know why this is, but it is. You need to set the position after it is added.

--- Jem
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…