Bug? Google Pixel XL and DipToCurrent Problem - Erel (first post)    Oct 24, 2016 There is no bug here. DipToCurrent and 'dip' units return an Int so it gets rounded.... B4A Question DipToCurrent() question - milehi (first post)    Jun 21, 2011 Thank you Erel, I will send an email for the fix soon. Did I forget to mention you have a excellent product... keep up the great work. :sign0098:... B4A Question [Solved] Resize CustomListView with a one long panel - PaulMeuris (first post)    Mar 6, 2026   (2 reactions) And you could also try this from your code (added second and third line): clvTest.Add(CreateListItem(Root.Width, Root.Height),-1) clvTest.ResizeItem(0,DipToCurrent(Root.Height)) ' clvTest.ResizeItem(0,DipToCurrent(Root.Width)) ' in landscape orientation The first item is resized. I tested the code on my tablet and used the DipToCurrent to adjust the dip sizes. In landscape orientation the width can be used in stead of the height.... Spanish B4XFloatTextField no muestra borde - Dadaista (first post)    Nov 10, 2025   (2 reactions) FloatTextField.TextField.SetColorAndBorder(xui.Color_Black, DipToCurrent(3), xui.Color_White, 10)... B4A Code Snippet [B4X] Auto Height Webview - Biswajit    Aug 26, 2020   (6 reactions) As Boolean, Result As String)
If Success Then webview.Height = DipToCurrent(Result)
End Sub
If...);")
End Sub
Sub SetWVHeight(height As String)
webview.Height = DipToCurrent(height)
End Sub... B4A Question can we generalize 'make CLV move smooth' java object for any other view movement ? - TILogistic (first post)    Aug 6, 2024 Or use DipToCurrent?... B4A Code Snippet [B4X] Get absolute top value of a View - Alexander Stolte (first post)    Dec 23, 2024   (1 reaction) Problems, always problems, for every "little" thing. I am currently working on a new class and also need to determine the screen position. If I use DipToCurrent, I get an accurate result: Dim leftTop(2) As Int #IF B4A Dim JO As JavaObject = view JO.RunMethod("getLocationOnScreen", Array As Object(leftTop)) leftTop(1) = DipToCurrent(leftTop(1) - view.Height)... B4A Question How to Handle evetn of editbox? - mikhatri (first post)    Nov 18, 2024 As ColorDrawable
cd.Initialize2(xui.Color_White, DipToCurrent(8), DipToCurrent(2), xui... focus"$)
Dim cd As ColorDrawable
cd.Initialize2(xui.Color_White, DipToCurrent(8), DipToCurrent(2), xui.Color_Transparent)
et.Background = cd
End If
End Sub... B4A Question AutoScale - Get the rate? - lip (first post)    Jun 9, 2025 in the Designer. - At run time pnl.Width would typically by 840 * 100dip / 100 - ie DipToCurrent... AutoScaleRate is the factor between the two = DipToCurrent(840) / pnl.Width..., are the pixels those of the bitmap or those of the view showing the bitmap ? Do you want to... pixel size in inches. Can you post a small project showing the problem. Instead of 100 / 100dip you could use xui.Scale Thanks for the help Klaus. I've just found a solution to the AutoScale... B4A Question BBCodeView Printout the Text Backword - Addo    Sep 2, 2022 (GroupNumber)
SmileCodeToimage = CreateSmileyImage(0, 0, DipToCurrent(30), DipToCurrent(30...-with-b4xgifview.142617/#post-904099
I am using String builder along with regex to create a string and replace... Page: 1   2   3   4   5   6   7   |