TMlSkinMessageBoxStyle

The message box skinning component: it restyles the dialogs the application pops up, including buttons, fonts and the title.

Category
Dialogs & misc
Unit
uMlSkinMessageBox.pas
Inherits from
TComponent

Notes

  • Drop one on the form and the MLSkin message box functions will use these settings.
  • ButtonPictures supplies the button images, with ButtonFont and ButtonHotFont for the normal and hover states.
  • The Define…Text properties relabel the buttons (Yes, No, OK, Cancel, Retry and so on), which is what localization needs.
  • DefineDonotShowAgainText is the caption of the "do not show again" check box.

Example

From the demo MlSkin.Demo.TMlSkinSpeedometer.网络测速.v4.x (.dfm form file)

object mlmbs1: TMlSkinMessageBoxStyle
  ButtonPictures.Active = True
  ButtonPictures.Image = 'MlSkinButton'
  ButtonPictures.Normal = 0
  ButtonPictures.Hot = 1
  ButtonPictures.Disable = 3
  ButtonPictures.Count = 5
  ButtonPictures.Pressed = 2
  Form.ActiveGradient = True
  Form.DoubleFrame = False
  Form.FillStyle = mfsBlur
  Form.FlatFrame = False
  Form.RoundWindow = True
  Form.TitleHeight = 27
  Form.TitlerColor = 13411945
  Form.Color = 15138779
  Form.FramWidth = 2
  Form.HitTestWidth = 5
  Form.GradientHeight = 68
  Form.Style = ssColor

Properties 17

NameTypeDefaultDescription
ButtonPicturesTPngPicturesImages for the dialog buttons — normal, hot and pressed frames.
FormTMlFormSkinResSkin settings for the dialog window itself: background, border and title bar.
MessageFontTFontFont of the message text.
MessageLightTMlLightClassGlow effect for the message text.
HideLineBooleanHides the divider between the message area and the buttons.
CaptionFontTFontFont of the dialog title.
ButtonFontTFontFont of the button captions.
ButtonHotFontTFontFont used for a button caption while the mouse is over it.
CaptionLightTMlLightClassGlow effect for the title text.
DefineYesButtonTextstringCaption of the Yes button, for localization.
DefineNoButtonTextstringCaption of the No button.
DefineOKButtonTextstringCaption of the OK button.
DefineCancelButtonTextstringCaption of the Cancel button.
DefineAbortButtonTextstringCaption of the Abort button.
DefineRetryButtonTextstringCaption of the Retry button.
DefineIgnoreButtonTextstringCaption of the Ignore button.
DefineDonotShowAgainTextstringCaption of the "do not show again" check box.

Only the properties and events MLSkin adds are listed here. Standard VCL properties such as Align, Anchors, Font and OnClick are available too and behave exactly as on the stock controls.

Offline helpA PDF / CHM version is available for offline reading.