event clicked;Int i, lx,ly,iCurrent
lx =983
ly = 344
For i =1 to 2
txtTmp[i] = Create SingleLineEdit
Parent.OpenUserObject(txtTmp[i])
txtTmp[i].x = X
//btnCm[i] = lx + 200
txtTmp[i].y = ly
txtTmp[i].width = 402
txtTmp[i].height = 128
txtTmp[i].visible = true
txtTmp[i].text = "Hola Mundo "+String (i)
txtTmp[i].taborder = 100
txtTmp[i].bringtotop = true
txtTmp[i].textsize = -10
txtTmp[i].weight = 400
txtTmp[i].fontcharset = ansi!
txtTmp[i].fontpitch = variable!
txtTmp[i].fontfamily = roman!
txtTmp[i].facename = "Bookman Old Style"
txtTmp[i].textcolor = 33554432
txtTmp[i].borderstyle = stylelowered!
lx += 150
ly += 200
Next
/*
Aquie encontramos el Source de una ventana
la cual tiene uno objetos botonos y dentro
de ellos encontraremos codigo para crear
objetos dinamicamente cabe resaltar que los
objetos que se estan creando en el ejemplo
son objetos propios de powerbuilder pero usted
puede crear objetos personalizados con codigo y
atributos para pasar parametros y reacciones a eventos
y otras situaciones similares.
MasterBrain 10-Sep-2004
*/
end event