Android Question Make rect size in floatng windows class

Discussion in 'Android Questions' started by juniorteacher, Jul 4, 2015.

  1. juniorteacher

    juniorteacher Member Licensed User

    how to make size of rect (dockingarea) match with panel size,


    Code:
    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(80256), Rnd(80256), Rnd(80256))
             pnl(p).Color = 
    Colors.Red
             
    Activity.AddView(pnl(p), Left, Top, 50%x25%y)
             wRect.Initialize(Left, Top, Left + 
    25%x, Top + 25%y)
             Win.AddDockingArea(wRect)
             Win.SetTag(
    1)
           
    Next
         
    Next
     

    Attached Files:

Loading...