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...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice