WebToolbarContainer.Size

From Xojo Documentation

Property (As Integer )
aWebToolbarContainer.Size = newIntegerValue
or
IntegerValue = aWebToolbarContainer.Size

New in 2011r2

Supported for all project types and targets.

For vertical toolbars, Size is the height of the item. For horizontal toolbars, Size is the width of the item. The opposing dimension will always be dictated by the toolbar. For example, a horizontal toolbar which is 56 pixels tall, a container with a size of 200 inside it would have the dimensions 200 x 56.

Example

This code changes the size for an existing container on the toolbar:

Var item As WebToolbarContainer
item = WebToolbarContainer(Toolbar1.ItemWithName("SearchControl"))

If item <> Nil Then
item.Size = 200
End If