B4X FEED [B4X] Problem with B4XView iteration of (UI) components

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: [B4X] Problem with B4XView iteration of (UI) components است. این موضوع تا کنون 52 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع [B4X] Problem with B4XView iteration of (UI) components
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
52
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Dear fellow developers,

I have a problem and hope that you can help me :)

I am trying to interate through all UI components in my current view and change some settings (e.g. colors).
It works great with Buttons and Labels in B4J and B4i (B4A not tested yet) but I also have a B4XFloatTextField and that is not being recognized by my "else if" clause...
(What) would I need to do different that I can check if the current B4XView (variable "v" in my example) is a B4XFloatTextField and do my changes?

For j = 0 To b4xviewIn.NumberOfViews-1
Dim v As B4XView = b4xviewIn.GetView(j)
If v Is Button Then
v.Text = "TestButton"
Else if v Is Label Then
v.Text = "TestLabel"
Else if v Is B4XFloatTextField Then
v.EditTextHint = "TestB4XFloatTextField"
End If
Next
Click to expand...

Thanks so much in advance!

Best regards,

Chris

 

عقب
بالا