Hoi,
I have a container with a label in it. The cpation of the label is set in in the init of the container. I want that the label adjust his position so it's in the center of the container. I've used the folowing formula :
this.lblCenter.left=this.width/2 - this.lblcenter.width/2
But what happens. The label doesn't center because the width of the label is still the old width of the old labelcaption and not the new actual width.
Can someone help me?
I have a container with a label in it. The cpation of the label is set in in the init of the container. I want that the label adjust his position so it's in the center of the container. I've used the folowing formula :
this.lblCenter.left=this.width/2 - this.lblcenter.width/2
But what happens. The label doesn't center because the width of the label is still the old width of the old labelcaption and not the new actual width.
Can someone help me?