Sub NewGauge(X As Int,y As Int,w As Int,h As Int)
Dim Newp As Panel
Dim Newc As Canvas
Dim Newgb As GaugeBase ' Custom type
Newgb.Initialize
Newp.Initialize("Gauge")
Activity.AddView(Newp,X,y,w,h)
Newc.Initialize(Newp)
Newgb.cBase = Newc
Newgb.pBase = Newp
Newgb.pBase.Tag = Id
BaseList.Add(Newgb)
End Sub