Android Question Make rect size in floatng windows class

juniorteacher

Member
Licensed User
Longtime User
how to make size of rect (dockingarea) match with panel size,


B4X:
For i = 0 To 1
       For j = 0 To 2
         Left = (j * 5%x) + 5%x
         Top = (i * 15%y) + 45%x
         p = (j*2)+i
         pnl(p).Initialize("")
         pnl(p).Tag = Colors.RGB(Rnd(80, 256), Rnd(80, 256), Rnd(80, 256))
         pnl(p).Color = Colors.Red
         Activity.AddView(pnl(p), Left, Top, 50%x, 25%y)
         wRect.Initialize(Left, Top, Left + 25%x, Top + 25%y)
         Win.AddDockingArea(wRect)
         Win.SetTag(1)
       Next
     Next
 

Attachments

  • wrect.png
    wrect.png
    5.7 KB · Views: 114
Top