B4A Question can we generalize 'make CLV move smooth' java object for any other view movement ? - Erel (first post)    Aug 06, 2024   (1 reaction) dip is a shorthand to DipToCurrent method. Better to use dip when possible. B4A Question BCTextEngine with Monospace letters. They don't have the same width! - TILogistic (first post)    Jul 22, 2023   (1 reaction) Public Sub Test BBCodeView1.TextEngine.Initialize(Root) BBCodeView1.TextEngine.SpaceBetweenLines = DipToCurrent(12) ' BBCodeView1.TextEngine.MinGapBetweenLines = DipToCurrent(6) ' BBCodeView1.TextEngine.WordBoundaries = "&*+-/<>=\' :{}" & TAB & CRLF & Chr(13) BBCodeView1.TextEng B4A Tutorial [B4X] [XUI] Creating custom views with XUI - klaus (first post)    Apr 10, 2018   (2 reactions) You should use GetDeviceLayoutValues in B4A only, for a conversion from pixels to dip values. The GetDeviceLayoutValues method doesn't exist in B4i nor in B4J.
No, the name DipToCurrent is correct because it converts a dip value into a pixel value.
In B4i you don't need the conversion, it is done Spanish [B4XPages] jRDC2 + MySQL CRUD + Login - TILogistic (first post)    Feb 02, 2021   (1 reaction) Use: DipToCurrent
por lo que he visto no son muchos los cambios.
vamos que se puede!!!
???
Saludos. 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 Inconsistent button placement with dips in a scrollview - klaus (first post)    Dec 18, 2016   (1 reaction) 120dip is a shortcut of DipToCurrent(120) which returns an integer.
And you can add two integers. B4A Question [Solved] once again: dip an dpi - klaus (first post)    Apr 05, 2020   (1 reaction) Well, it depends on what you want to do.
You have different possibilities:
LblTitle.Height = 30dip
Dim ii As Int=30dip
LblTitle.Height = ii
Dim ii As Int=30
LblTitle.Height= DipToCurrent(ii)
All are the same !
30dip is the shortcut of DipToCurrent(30) B4A Question i will have same visual button size at differnt devices. - klaus (first post)    Sep 10, 2018   (2 reactions) Yes.
density independnt pixel means the following:
If you set the width of a view to 160dip in the Designer or in the code,
you will get a real width in device pixels which are 160 * scale.
dip is a shortcut of the DipToCurrent keyword, from the help:
DipToCurrent
Method
Scales the value, which r B4A Question creating layout programmatically - Erel (first post)    Jan 19, 2020   (2 reactions) %x and %y are shortcuts to PerXToCurrent / PerYToCurrent. dip is a shortcut to DipToCurrent. Dim p As Int = 50 Log(PerXToCurrent(p)) 'same as 50%x Log(DipToCurrent(p)) 'same as 50dip Spanish Pegar Imágenes sobre otra imagen - drgottjr (first post)    Oct 28, 2022   (2 reactions) Width),DipToCurrent( lorenilla.Height)) imageview.Bitmap = lorenilla imageview.Gravity = Gravity.CENTER Dim canvas As Canvas canvas.Initialize(imageview) Dim destination As Rect destination.Initialize(40,350,40+150,350+150) ' para que freddie aparezca en la ventana canvas.DrawBitmap(freddie, Null Page: 1   2   3   4   5   6   7   Powered by ColBERT |