Information générale
Titre:
Standard window grouping boxes
I'm trying to create a class that will make boxes that look like the standard window grouping boxes (the old Foxprow genscrnx frame3d box). Everything looks fine at runtime, but I can only access controls placed inside (front of) the shape via the keyboard. I cannot select them by the mouse. Any ideas why this happening?
The base class is a shape with a backstyle property of Opaque and a border color of 128,128,128. In the init method of the shape I have the following code:
* create another shape on top (just to the right and above) of this shape
* with a white bordercolor to give the 3 dimensional look like the
* standard window grouping boxes
cname = "o"+right(sys(2015),7)
this.parent.addobject(cname,"shape")
onewshape = eval("this.parent."+cname)
onewshape.left = this.left + 1
onewshape.top = this.top + 1
onewshape.width = this.width
onewshape.height = this.height
onewshape.bordercolor = rgb(255,255,255)
onewshape.backstyle = 0
onewshape.visible = .t.
Tim
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement