on desktop we have the actualWidth for a listbox item
on a web project, I have the width of an item
if there is any lock for this item, how can I know the actual width of the webcontrol at runtime
also I need this for a websdkuicontrol, if there is any difference ?
The reason Desktop Listbox columns have an ActualWidth is because you can provide the Listbox with a width expression and the columns will calculate widths. That’s not really relevant to how you would use the framework to determine the width of anything in general.
I’ve just tested with a WebButton and found that the Width property does not reflect the correct value when locking is enabled in the version I use. If this is still true in the current version, file a ticket because I would consider that a bug.
in fact I tested a webbutton on a page, and displaying the button width when the webpage.resize event fires, gives me the correct value ?!
also on a websdkuicontrol the witdh seems correctly refreshed …
I’m sorry but I’m lost, are you saying that listbox1.width, if the listbox is changing widths because you enlarge the browser window, does not change? or you want to know the column width? or this is for all Xojo controls?
Did a quick test with Xojo2023r1.1 added a WebButton with lock top/left/right, messagebox me.width.tostring and the value changes as the button gets widder.