how can i use the bounding rect to obtain width and height to be dynamically used in label?
It's not clear what you're asking. Set the label text to something and then use boundingRect() to get the size of the label as displayed on the screen:
label = CreateObject("roSGNode", "Label")
label.text = "Some text"
w = label.BoundingRect().width
h = label.BoundingRect().height
If you've set the label's width and height to something then BoundingRect() will just return those values.
It's not clear what you're asking. Set the label text to something and then use boundingRect() to get the size of the label as displayed on the screen:
label = CreateObject("roSGNode", "Label")
label.text = "Some text"
w = label.BoundingRect().width
h = label.BoundingRect().height
If you've set the label's width and height to something then BoundingRect() will just return those values.
thank you so much