Ok, the experimental code where i cut the snippet i sent to you last is attached below, i used it in B4J, that of B4A is not displaying yet. This is B4xradiobutton; you can apply your logic to legacy radiobutton or B4Xradiobutton, Feel free to use either b4xradiobutton or normal type. Thank youCould you post a small project?
Hoops? Not really, if one solution solves my problem, why will I ask for more ? Being a new trick, it must always bring along more room for clearification; that's why. You have tried, thank you; I appreciate your effort. Trial-and-error will solve the remainingYou have got us going through hoops for you.
Just adjust the tag to include two parameters. There are already examples of this in the code we posted.
I'm out.
@Mahares, thank you. How do I explain better for you? Ok, let me put it this way, this is what I am trying to acheive from other threads I opened yesterday maybe you will understand better if you read any below. I just need B4X solution:The more I read this thread the more I see xCustomlistview written all over it, with items as panels composed of 3 B4XRadioButtons each , unless I am missing the big picture. I think , if the OP explains in plain English exactly what he wants to do with a clearer explanation and a screenshot of the end result, perhaps it can be addressed again. If xCustomlistview is not applicable here, please disregard my post.
Seeing possibility in xcustomlostview wouldnt be bad idea if I can see sample code to see how it will work with varying long text. At point in time one can decide best and fast solution to get the work done.
First of all, thank you for your hard work and williness to help. I value your precious time and i really appreciate deep down my heart, however; where I am having problem exactly is how to accommodate long text in place of option 1, 2 or 3 or on another label put beside B4xradiobutton after removing B4xradiobutton mlabel and not as extra dialogbox or msgbox to display the text when clicked.How about an xCustomlistview with 4 panels, each panel has 3 B4XRadioButtons. When you click on any button it displays long text that you can scroll through for viewing using the B4XLongTextTemplate of XUI Views. ANy button you check displays a different text with different length. You can scroll the text and make it as wide and as high as the screen. SInce you are looking for ideas??
View attachment 141026
View attachment 141027
Dim Pane As B4XView
For Each v As B4XView In Pane.GetAllViewsRecursive
If v Is Button Then
If v.As(Button).Tag = 123 Then
v.As(Button).Text = "Hola"
End If
End If
Next
Oh, thank you so much, it will be useful and your English or translation is not bad. @teddybear was trying to suggest something like this yesterday:when I have to get a reference of a panel or more panels without losing references, I get it with this method, I don't know if this is useful for you, also because I don't speak English very well
B4X:Dim Pane As B4XView For Each v As B4XView In Pane.GetAllViewsRecursive If v Is Button Then If v.As(Button).Tag = 123 Then v.As(Button).Text = "Hola" End If End If Next
Your requirements and explanation were well presented. Have you by any chance taken a look at CLVExpandable. I am not sure at this point if it can fit in your scenarios, nevertheless worth a look, but if I get some time, I might play with it.alternative to bbcodeview so far one button is retained in each group when clicked and it is b4xsolution
CLVExpandable will just expand my coding headache (although, I may be wrong) and won't fit well in area where I want to apply it. Bbcodeview still remains shortest coding approach if only I can access individual B4xradiobutton on a panel without loosing its grouping attribute inherited from panel since autotext height adjustment is taken care off. Xcustomlistview can serve as good planB if measuretexthheight can be taken care off. If you check one of the earlier links I posted here, I succeeded in adjusting or moving B4xradiobutton2 to end of long text, but I found out all B4xradiobutton then became inactive.Your requirements and explanation were well presented. Have you by any chance taken a look at CLVExpandable. I am not sure at this point if it can fit in your scenarios, nevertheless worth a look, but if I get some time, I might play with it.
I read your code, if you use RadioButton instead of B4Xradiobutton in layout , the group behavior of RadioButtons will work in BBCodeView.Ok, the experimental code where i cut the snippet i sent to you last is attached below, i used it in B4J, that of B4A is not displaying yet. This is B4xradiobutton; you can apply your logic to legacy radiobutton or B4Xradiobutton, Feel free to use either b4xradiobutton or normal type. Thank you
You are right! I sensed that while working with it too. That is why I encouraged you in my previous post to feel free to apply that your method to legacy radiobutton so I can see how it works out. But aside B4J, does your solution work the same in B4A? If it works in B4A and B4J, that means major headache is solved in simpler way close to logic I can easily manipulate. I can just use @William Lancee label wonderful trick to acheive that of B4I. Although, I will still like to see possible solutions around B4xradiobutton/AS_Radiobutton because of enhanced effects. Please, help me attach your modified code, so I can test it in B4A also. Thank youI read your code, if you use RadioButton instead of B4Xradiobutton in layout , the group behavior of RadioButtons will work in BBCodeView.
that's because RadioButton can be cast to B4XView and B4Xradiobutton can't be.( B4Xradiobutton is customview)
when we get a B4XView from Panel using GetView(), the B4xView of RadioButton can retain the group behavior, and the B4xView from B4xRadioButton will lose the group behavior
I just remember I did that before with normal radiobutton, it worked only in B4J but didn't work in B4A. But because I needed B4x solution, I ignored looking at direction of conventional radiobutton. If you remove or uncomment your code from the B4J I sent to you and replace B4xradiobutton with normal radiobutton, it will still work well in B4J only without your code, but it never works in B4A.I read your code, if you use RadioButton instead of B4Xradiobutton in layout , the group behavior of RadioButtons will work in BBCodeView.
that's because RadioButton can be cast to B4XView and B4Xradiobutton can't be.( B4Xradiobutton is customview)
when we get a B4XView from Panel using GetView(), the B4xView of RadioButton can retain the group behavior, and the B4xView from B4xRadioButton will lose the group behavior
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?