Xojo Settings Window

How does one do an automatic resizing of a Window to fit the view like how the Xojo Settings / Preferences window works?

Ex: In the Xojo preferences window, clicking through the different options resizes the window to fit that container control.

Thanks,
Shane.

You write code which is all we’ve done

More specifically, a Timer would work well for this.

This code is in a Timer (mode = multiple, period = 10ms):

If mNewSize < Self.Height Then Self.Height = Self.Height - 10 ElseIf mNewSize > Self.Height Then Self.Height = Self.Height + 10 End If

Set mNewSize to the new size and the Timer adjusts the window “live”. Make sure the new size is a multiple of 10, though!

You’ll want my AnimationKit. Makes such an effect a piece of cake.