I have three labels horizontally one after the other, defined in the Internal Designer, on top of an edit box. Programmatically, there is an extra label defined, which I would like to place to the right of the label currently on the right.
, but when the new label is displayed, it shows up at the same beginning left position as the last label lbl_item_003. I'd like it to show up immediately to the right of the right side of 003,
This depends on where you are defining the label, if it is in (or called directly from) the appstart sub, then there is a good chance that the layout is not completely laid out when you are reading the position of the existing label.
You should use the PrefWidth in preference to the Width method, and try putting it in a separate sub and call it using callsubdelayed.
This depends on where you are defining the label, if it is in (or called directly from) the appstart sub, then there is a good chance that the layout is not completely laid out when you are reading the position of the existing label.
You should use the PrefWidth in preference to the Width method, and try putting it in a separate sub and call it using callsubdelayed.