EinhugurViewManager Xojo Class.

EinhugurViewManager Class

A class to auto scale the user interface in a Xojo DesktopWindow or Xojo DesktopContainer.

This class was inspired by the popular RubberView kit for Xojo. Its author sadly passed away.

To use this class then drag the class onto your Window, then optionally set properties on it.

For a Window:
In opening event add:
EinhugurViewManager1.Init(self)


You can also add optional special settings for some controls in the Opening event after calling Init:
// We lock the ratio on the Oval and the Rectangle so oval does not become ellipse and such.
EinhugurViewManager1.LockRatio(Oval1)
EinhugurViewManager1.LockRatio(Rectangle1)


For Resized event:
EinhugurViewManager1.SizeAll(self)


For Resizing event:
EinhugurViewManager1.SizeAll(self)


For container control it works the same exact you need to do one type case on the self in the events there:

EinhugurViewManager1.Init(DesktopContainer(self))

Object
   EinhugurViewManager

class EinhugurViewManager

Constructors

EinhugurViewManagerConstructor with no parameters.

Properties

ScaleWindowBackdropIf set to true then a backdrop image on the window will be scaled.

Methods

IgnoreAdds ignore for a given container on your window or container control.
IgnoreAdds ignore for a given control on your window or container control.
InitInits the EinhugurViewManager class.
InitInits the EinhugurViewManager class.
LockRatioLocks the ratio of a given container.
LockRatioLocks the ratio of a given control.
NoHorizontalResizeRestricts container so it will not scale horizontally.
NoHorizontalResizeRestricts control so it will not scale horizontally.
NoResizeRestricts container so it will not scale.
NoResizeRestricts control so it will not scale.
NoVerticalResizeRestricts container so it will not scale vertically.
NoVerticalResizeRestricts control so it will not scale vertically.
SizeAllPerforms resize on the container content.
SizeAllPerforms resize on the windows content.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit