Unit 'MUIClass.Window' Package
[Overview][Types][Classes][Index] [#MUIClass]

TMUIWindow.Width

[i] Specify the width of a window.

Declaration

Source position: MUIClass.Window.pas line 145

published property TMUIWindow.Width : Integer
  read GetWidth
  write SetWidth
  default MUIV_Window_Width_Default;

Description

Usually, you won't give a pixel value here but instead use one of the following magic macros:

MUIV_Window_Width_Default
calculated from objects default sizes.
MUIV_Window_Width_MinMax(0..100)
somewhere between the minimum width (0) and the maximum width (100) of your window.
MUIV_Window_Width_Visible(1..100)
percentage of the screens visible width.
MUIV_Window_Width_Screen(1..100)
percentage of the screens total width.
MUIV_Window_Width_Scaled
height will be adjusted so that width : height = minimum width : minimum height. Note that a windows width and height may not both be scaled.

Default is MUIV_Window_Width_Default.

As long as your window has a window ID, choosing a size is not that important. MUI will always remember a windows last position and size and these values will simply override your settings. Positioning and sizing should be completely under user control, a programmer doesn't need to worry about it.

See also

Height

  

[i] Specify the height of a window.

ID

  

Snapshot ID for the Window


Documentation generated on: 2023-12-05