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 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... B4A Question Select item in CLV - Erel (first post)    Jul 19, 2021 This is a mistake:
DipToCurrent(100dip)
It should be:
Log(100dip & " / " & item.Size)
'or
Log(DipToCurrent(100) & " / " & item.Size)
... B4A Question how to give a value from the ((spinner)) - Mahares (first post)    Oct 2, 2022 Fixed When placed in LoadBitmapResize Shouldn't your width and height be in dip. If so, I think instead of: bmp1 = xui.LoadBitmapResize(File.DirAssets, "T.jpg",w,h,False) It should be: bmp1 = xui.LoadBitmapResize(File.DirAssets, "T.jpg",DipToCurrent(w),DipToCurrent(h),False)... Page: 1   2   3   4   5   6   7   |