pub struct FormControl {
Show 26 fields pub back_color: OleColor, pub boolean_properties: FormFlags, pub border_color: OleColor, pub border_style: BorderStyle, pub caption: String, pub cycle: Cycle, pub displayed_size: Size, pub draw_buffer: u32, pub font: GuidAndFont, pub fore_color: OleColor, pub group_count: u32, pub logical_size: Size, pub mouse_icon: GuidAndPicture, pub mouse_pointer: MousePointer, pub next_available_id: u32, pub picture: GuidAndPicture, pub picture_alignment: PictureAlignment, pub picture_size_mode: PictureSizeMode, pub picture_tiling: bool, pub scroll_bars: FormScrollBarFlags, pub scroll_position: Position, pub shape_cookie: u32, pub special_effect: SpecialEffect, pub zoom: u32, pub sites: Vec<Site>, pub site_classes: Vec<SiteClassInfo>,
}

Fields§

§back_color: OleColor

default: 0x8000000F = COLOR_BTNFACE from the system palette.

§boolean_properties: FormFlags

default: 0x00000004 = FORM_FLAG_ENABLED

§border_color: OleColor

default: 0x80000012 = COLOR_BTNTEXT from the system palette.

§border_style: BorderStyle

default: 0x00 = None

§caption: String

default: “”

§cycle: Cycle

default: AllForms

§displayed_size: Size

default: (4000, 3000)

§draw_buffer: u32

REQUIRED

§font: GuidAndFont

default: no font

§fore_color: OleColor

default: 0x80000012 = COLOR_BTNTEXT from the system palette

§group_count: u32

An unsigned integer that specifies the number of control groups on a form. default: 0

§logical_size: Size

An fmSize that specifies the full scrollable size, in HIMETRIC units, of a form, including all controls. A value of zero in either width or height specifies that the scrollable size is equivalent to the value of the corresponding portion of DisplayedSize.

default: (4000, 3000)

§mouse_icon: GuidAndPicture

A GuidAndPicture that specifies a custom icon to display as the mouse pointer for the control, which is used when the value of the MousePointer property is set to 99, fmMousePointerCustom.

The file format default is no custom icon.

§mouse_pointer: MousePointer

An unsigned integer that specifies the type of icon displayed as the mouse pointer for the control. SHOULD be a value from the fmMousePointer enumeration.<8>

The file format default is 0x00, fmMousePointerDefault.

§next_available_id: u32

An unsigned integer that specifies the largest ID that has been used by an embedded control on a form. The value of this property can be used by the client application to determine the next valid ID for a new control.

The file format default is 0x00000000.

§picture: GuidAndPicture

A GuidAndPicture that specifies the picture to display on a control.

The file format default is no picture.

§picture_alignment: PictureAlignment

An fmPictureAlignment that specifies the alignment of the picture in the Form or Image.

The file format default is 0x02, fmPictureAlignmentCenter.

§picture_size_mode: PictureSizeMode

An fmPictureSizeMode that specifies how to display the picture.

The file format default is 0x00, fmPictureSizeModeClip.

§picture_tiling: bool

A Boolean value that specifies whether the picture is tiled across the background.

The file format default is FALSE.

§scroll_bars: FormScrollBarFlags

A FormScrollBarFlags that specifies whether a form has vertical or horizontal scroll bars and when to display them.

The file format default is 0x0000000C, fScrollBarsKeepHorizontal and fScrollBarsKeepVertical.

§scroll_position: Position

An fmPosition that specifies, in HIMETRIC units, the coordinates of the first point in the LogicalSize of the form that is visible.

The file format default is a position of (0, 0), which specifies that the form has not been scrolled.

§shape_cookie: u32

An unsigned integer that specifies the number of times the dynamic type information of a form has changed. The value of this property can be used to determine whether a form being loaded still matches the dynamic type information against which it was compiled.

The file format default is 0x00000000.

§special_effect: SpecialEffect

An fmSpecialEffect that specifies the visual appearance of the control.

The file format default is 0x00, fmSpecialEffectFlat

§zoom: u32

A signed integer that specifies the magnification of embedded controls, in percentage points of the size of the parent control. MUST be greater than or equal to 10 (10 percent of actual size) and less than or equal to 400 (four times or 400 percent of actual size).

The file format default is 100, or actual size.

§sites: Vec<Site>

All contained sites

§site_classes: Vec<SiteClassInfo>

All contained site classes

Trait Implementations§

source§

impl Debug for FormControl

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.