types

package
v2.0.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 1 Imported by: 967

Documentation

Index

Constants

View Source
const (
	IdOK       = 1
	IdCancel   = 2
	IdAbort    = 3
	IdRetry    = 4
	IdIgnore   = 5
	IdYes      = 6
	IdNo       = 7
	IdClose    = 8
	IdHelp     = 9
	IdTryAgain = 10
	IdContinue = 11
	MrNone     = 0
	MrOk       = IdOK
	MrCancel   = IdCancel
	MrAbort    = IdAbort
	MrRetry    = IdRetry
	MrIgnore   = IdIgnore
	MrYes      = IdYes
	MrNo       = IdNo
	MrClose    = IdClose
	MrHelp     = IdHelp
	MrTryAgain = IdTryAgain
	MrContinue = IdContinue
	MrAll      = MrContinue + 1
	MrNoToAll  = MrAll + 1
	MrYesToAll = MrNoToAll + 1
)
View Source
const (
	CF_TEXT         = 1
	CF_BITMAP       = 2
	CF_METAFILEPICT = 3
	CF_SYLK         = 4
	CF_DIF          = 5
	CF_TIFF         = 6
	CF_OEMTEXT      = 7
	CF_DIB          = 8
	CF_PALETTE      = 9
	CF_PENDATA      = 10
	CF_RIFF         = 11
	CF_WAVE         = 12
	CF_UNICODETEXT  = 13
	CF_ENHMETAFILE  = 14
	CF_HDROP        = 15
	CF_LOCALE       = 0x10
	CF_MAX          = 18 /* if WINVER >= 0x0500 */

)

Predefined Clipboard Formats

View Source
const (
	AlNone = iota + 0
	AlTop
	AlBottom
	AlLeft
	AlRight
	AlClient
	AlCustom
)
View Source
const (
	BsNone = iota + 0
	BsSingle
	BsSizeable
	BsDialog
	BsToolWindow
	BsSizeToolWin
)
View Source
const (
	FsNormal = iota + 0
	FsMDIChild
	FsMDIForm
	FsStayOnTop

	// lcl
	FsSplash
	FsSystemStayOnTop
)
View Source
const (
	PoDesigned        = iota + 0 // use bounds from the designer (read from stream)
	PoDefault                    // LCL decision (normally window manager decides)
	PoDefaultPosOnly             // designed size and LCL position
	PoDefaultSizeOnly            // designed position and LCL size
	PoScreenCenter               // center form on screen (depends on DefaultMonitor)
	PoDesktopCenter              // center form on desktop (total of all screens)
	PoMainFormCenter             // center form on main form (depends on DefaultMonitor)
	PoOwnerFormCenter            // center form on owner form (depends on DefaultMonitor)
	PoWorkAreaCenter             // center form on working area (depends on DefaultMonitor)
)
View Source
const (
	CrHigh = TCursor(0)

	CrDefault   = TCursor(0)
	CrNone      = TCursor(-1)
	CrArrow     = TCursor(-2)
	CrCross     = TCursor(-3)
	CrIBeam     = TCursor(-4)
	CrSize      = TCursor(-22)
	CrSizeNESW  = TCursor(-6) // diagonal north east - south west
	CrSizeNS    = TCursor(-7)
	CrSizeNWSE  = TCursor(-8)
	CrSizeWE    = TCursor(-9)
	CrSizeNW    = TCursor(-23)
	CrSizeN     = TCursor(-24)
	CrSizeNE    = TCursor(-25)
	CrSizeW     = TCursor(-26)
	CrSizeE     = TCursor(-27)
	CrSizeSW    = TCursor(-28)
	CrSizeS     = TCursor(-29)
	CrSizeSE    = TCursor(-30)
	CrUpArrow   = TCursor(-10)
	CrHourGlass = TCursor(-11)
	CrDrag      = TCursor(-12)
	CrNoDrop    = TCursor(-13)
	CrHSplit    = TCursor(-14)
	CrVSplit    = TCursor(-15)
	CrMultiDrag = TCursor(-16)
	CrSQLWait   = TCursor(-17)
	CrNo        = TCursor(-18)
	CrAppStart  = TCursor(-19)
	CrHelp      = TCursor(-20)
	CrHandPoint = TCursor(-21)
	CrSizeAll   = TCursor(-22)

	CrLow = -30
)
View Source
const (
	SoBeginning = iota + 0
	SoCurrent
	SoEnd
)
View Source
const (
	PfDevice = iota + 0
	Pf1bit
	Pf4bit
	Pf8bit
	Pf15bit
	Pf16bit
	Pf24bit
	Pf32bit
	PfCustom
)
View Source
const (
	TaLeftJustify = iota + 0
	TaRightJustify
	TaCenter
)
View Source
const (
	BdLeftToRight = iota + 0
	BdRightToLeft
	BdRightToLeftNoAlign
	BdRightToLeftReadingOnly
)
View Source
const (
	TaAlignTop = iota + 0
	TaAlignBottom
	TaVerticalCenter
)
View Source
const (
	BsPushButton = iota + 0
	BsCommandLink
	BsSplitButton
)
View Source
const (
	CsDropDown                  = iota + 0 // like an TEdit plus a button to drop down the list, default
	CsSimple                               // like an TEdit plus a TListBox
	CsDropDownList                         // like TLabel plus a button to drop down the list
	CsOwnerDrawFixed                       // like csDropDownList, but custom drawn
	CsOwnerDrawVariable                    // like csDropDownList, but custom drawn and with each item can have another height
	CsOwnerDrawEditableFixed               // like csOwnerDrawFixed, but with TEdit
	CsOwnerDrawEditableVariable            // like csOwnerDrawVariable, but with TEdit
)
View Source
const (
	WsNormal = iota + 0
	WsMinimized
	WsMaximized

	// LCL
	WsFullScreen
)
View Source
const (
	TlTop = iota + 0
	TlCenter
	TlBottom
)
View Source
const (
	EpNone = iota + 0
	EpPathEllipsis
	EpEndEllipsis
	EpWordEllipsis
)
View Source
const (
	LbStandard = iota + 0
	LbOwnerDrawFixed
	LbOwnerDrawVariable
	LbVirtual
)
View Source
const (
	MaAutomatic = iota + 0
	MaManual
	MaParent
)
View Source
const (
	PaLeft = iota + 0
	PaRight
	PaCenter
)
View Source
const (
	TbRightButton = iota + 0
	TbLeftButton
)
View Source
const (
	PbHorizontal = iota + 0
	PbVertical
	// lcl
	PbRightToLeft
	PbTopDown
)
View Source
const (
	PbstNormal = iota + 0
	PbstMarquee
)
View Source
const (
	PbsNormal = iota + 0
	PbsError
	PbsPaused
)
View Source
const (
	BlGlyphLeft = iota + 0
	BlGlyphRight
	BlGlyphTop
	BlGlyphBottom
)
View Source
const (
	BsUp        = iota + 0 // button is up
	BsDisabled             // button disabled (grayed)
	BsDown                 // button is down
	BsExclusive            // button is the only down in his group
	// lcl
	BsHot // button is under mouse
)
View Source
const (
	BsAutoDetect = iota + 0
	BsWin31
	BsNew
)
View Source
const (
	FsBold = iota + 0
	FsItalic
	FsUnderline
	FsStrikeOut
)
View Source
const (
	SsNone = iota + 0
	SsHorizontal
	SsVertical
	SsBoth
	// lcl
	SsAutoHorizontal
	SsAutoVertical
	SsAutoBoth
)
View Source
const (
	StNone = iota + 0
	StData
	StText
	StBoth
)
View Source
const (
	MsControlSelect = iota + 0
	MsShiftSelect
	MsVisibleOnly
	MsSiblingOnly
)
View Source
const (
	ArAlignBottom = iota + 0
	ArAlignLeft
	ArAlignRight
	ArAlignTop
	ArDefault
	ArSnapToGrid
)
View Source
const (
	VsIcon = iota + 0
	VsSmallIcon
	VsList
	VsReport
)
View Source
const (
	IsNone = iota + 0
	IsCut
	IsDropHilited
	IsFocused
	IsSelected
	IsActivating
)
View Source
const (
	CtText = iota + 0
	CtImage
	CtState
)
View Source
const (
	IfData = iota + 0
	IfPartialString
	IfExactString
	IfNearest
)
View Source
const (
	SdLeft = iota + 0
	SdRight
	SdAbove
	SdBelow
	SdAll
)
View Source
const (
	HtHandPoint = iota + 0
	HtUnderlineCold
	HtUnderlineHot
)
View Source
const (
	IrText = iota + 0
	IrImage
	IrParam
	IrState
	IrIndent
)
View Source
const (
	BsSolid = iota + 0
	BsClear
	BsHorizontal
	BsVertical
	BsFDiagonal
	BsBDiagonal
	BsCross
	BsDiagCross

	// lcl
	BsImage
	BsPattern
)
View Source
const (
	PsSolid = iota + 0
	PsDash
	PsDot
	PsDashDot
	PsDashDotDot
	PsinsideFrame
	PsPattern
	PsClear
)
View Source
const (
	BtNext = iota + 0
	BtPrev
)
View Source
const (
	TpTop = iota + 0
	TpBottom
	TpLeft
	TpRight
)
View Source
const (
	TsTabs = iota + 0
	TsButtons
	TsFlatButtons
)
View Source
const (
	FpDefault = iota + 0
	FpVariable
	FpFixed
)
View Source
const (
	PmBlack = iota + 0
	PmWhite
	PmNop
	PmNot
	PmCopy
	PmNotCopy
	PmMergePenNot
	PmMaskPenNot
	PmMergeNotPen
	PmMaskNotPen
	PmMerge
	PmNotMerge
	PmMask
	PmNotMask
	PmXor
	PmNotXor
)
View Source
const (
	TrHorizontal = iota + 0
	TrVertical
)
View Source
const (
	UdHorizontal = iota + 0
	UdVertical
)
View Source
const (
	FqDefault = iota + 0
	FqDraft
	FqProof
	FqNonAntialiased
	FqAntialiased
	FqClearType
	FqClearTypeNatural
)
View Source
const (
	CaNone = iota + 0
	CaHide
	CaFree
	CaMinimize
)
View Source
const (
	BfNone = iota + 0
	BfInfo
	BfWarning
	BfError
)
View Source
const (
	MtWarning = iota + 0
	MtError
	MtInformation
	MtConfirmation
	MtCustom
)
View Source
const (
	MbYes = iota + 0
	MbNo
	MbOK
	MbCancel
	MbAbort
	MbRetry
	MbIgnore
	MbAll
	MbNoToAll
	MbYesToAll
	MbHelp
	MbClose
)
View Source
const (
	SltURL = iota + 0
	SltID
)
View Source
const (
	PsText = iota + 0
	PsOwnerDraw
)
View Source
const (
	PbNone = iota + 0
	PbLowered
	PbRaised
)
View Source
const (
	JpBestQuality = iota + 0
	JpBestSpeed
)
View Source
const (
	JsFullSize = iota + 0
	JsHalf
	JsQuarter
	JsEighth
)
View Source
const (
	GvUnknown = iota + 0
	Gv87a
	Gv89a
)
View Source
const (
	GlDisabled = iota + 0
	GlEnabled
	GlContinously
)
View Source
const (
	GdDisabled = iota + 0
	GdEnabled
	GdAuto
)
View Source
const (
	NsCut           = iota + 0 // = Node.Cut
	NsDropHilite               // = Node.DropTarget
	NsFocused                  // = Node.Focused
	NsSelected                 // = Node.Selected
	NsMultiSelected            // = Node.MultiSelected
	NsExpanded                 // = Node.Expanded
	NsHasChildren              // = Node.HasChildren
	NsDeleting                 // = Node.Deleting, set on Destroy
	NsVisible                  // = Node.Visible
	NsBound                    // bound to a tree, e.g. has Parent or is top lvl node
)
View Source
const (
	NaAdd           = iota + 0 // add as last sibling of Destination
	NaAddFirst                 // add as first sibling of Destination
	NaAddChild                 // add as last child of Destination
	NaAddChildFirst            // add as first child of Destination
	NaInsert                   // insert in front of Destination
	NaInsertBehind             // insert behind Destination
)
View Source
const (
	TaAddFirst = iota + 0
	TaAdd
	TaInsert
)
View Source
const (
	AsNormal = iota + 0
	AsSuspended
	AsSuspendedEnabled
)
View Source
const (
	GdHorizontal = iota + 0
	GdVertical
)
View Source
const (
	DSFocus = iota + 0
	DSSelected
	DSNormal
	DSTransparent
)
View Source
const (
	ItImage = iota + 0
	ItMask
)
View Source
const (
	RtBitmap = iota + 0
	RtCursor
	RtIcon
)
View Source
const (
	LrDefaultColor = iota + 0
	LrDefaultSize
	LrFromFile
	LrMap3DColors
	LrTransparent
	LrMonoChrome
)
View Source
const (
	CdDefault = iota + 0
	CdDeviceDependent
	Cd4Bit
	Cd8Bit
	Cd16Bit
	Cd24Bit
	Cd32Bit
)
View Source
const (
	CbUnchecked = iota + 0
	CbChecked
	CbGrayed
)
View Source
const (
	DsNormal = iota + 0
	DsGradient
)
View Source
const (
	TbsButton     = iota + 0 // button (can be clicked)
	TbsCheck                 // check item (click to toggle state, can be grouped)
	TbsDropDown              // button with dropdown button to show a popup menu
	TbsSeparator             // space holder
	TbsDivider               // space holder with line
	TbsButtonDrop            // button with arrow (not separated from each other)
)
View Source
const (
	GdoHotTrack = iota + 0
	GdoGradient
)
View Source
const (
	CdFullOpen = iota + 0
	CdPreventFullOpen
	CdShowHelp
	CdSolidColor
	CdAnyColor
)
View Source
const (
	BiSystemMenu = iota + 0
	BiMinimize
	BiMaximize
	BiHelp
)
View Source
const (
	FdAnsiOnly = iota + 0
	FdTrueTypeOnly
	FdEffects
	FdFixedPitchOnly
	FdForceFontExist
	FdNoFaceSel
	FdNoOEMFonts
	FdNoSimulations
	FdNoSizeSel
	FdNoStyleSel
	FdNoVectorFonts
	FdShowHelp
	FdWysiwyg
	FdLimitSize
	FdScalableOnly
	FdApplyButton
)
View Source
const (
	OfReadOnly        = iota + 0
	OfOverwritePrompt // if selected file exists shows a message, that file
	// will be overwritten
	OfHideReadOnly // hide read only file
	OfNoChangeDir  // do not change current directory
	OfShowHelp     // show a help button
	OfNoValidate
	OfAllowMultiSelect // allow multiselection
	OfExtensionDifferent
	OfPathMustExist // shows an error message if selected path does not exist
	OfFileMustExist // shows an error message if selected file does not exist
	OfCreatePrompt
	OfShareAware
	OfNoReadOnlyReturn // do not return filenames that are readonly
	OfNoTestFileCreate
	OfNoNetworkButton
	OfNoLongNames
	OfOldStyleDialog
	OfNoDereferenceLinks // do not resolve links while dialog is shown (only on Windows, see OFN_NODEREFERENCELINKS)
	OfNoResolveLinks     // do not resolve links after Execute
	OfEnableIncludeNotify
	OfEnableSizing    // dialog can be resized, e.g. via the mouse
	OfDontAddToRecent // do not add the path to the history list
	OfForceShowHidden // show hidden files
	OfViewDetail      // details are OS and interface dependent
	OfAutoPreview     // details are OS and interface dependent
)
View Source
const (
	PrAllPages = iota + 0
	PrSelection
	PrPageNums
	// lcl
	PrCurrentPage
)
View Source
const (
	PoPrintToFile = iota + 0
	PoPageNums
	PoSelection
	PoWarning
	PoHelp
	PoDisablePrintToFile
	//lcl
	PoBeforeBeginDoc
)
View Source
const (
	PsoDefaultMinMargins = iota + 0
	PsoDisableMargins
	PsoDisableOrientation
	PsoDisablePagePainting
	PsoDisablePaper
	PsoDisablePrinter
	PsoMargins
	PsoMinMargins
	PsoShowHelp
	PsoWarning
	PsoNoNetworkButton
)
View Source
const (
	PkDotMatrix = iota + 0
	PkHPPCL
)
View Source
const (
	PtEnvelope = iota + 0
	PtPaper
)
View Source
const (
	PmDefault = iota + 0
	PmMillimeters
	PmInches
)
View Source
const (
	SoStrictDelimiter = iota + 0
	SoWriteBOM
	SoTrailingLineBreak
	SoUseLocale
)
View Source
const (
	SsShift = iota + 0
	SsAlt
	SsCtrl
	SsLeft
	SsRight
	SsMiddle
	SsDouble
	// Extra additions
	SsMeta
	SsSuper
	SsHyper
	SsAltGr
	SsCaps
	SsNum
	SsScroll
	SsTriple
	SsQuad
	SsExtra1
	SsExtra2
)
View Source
const (
	MbLeft = iota + 0
	MbRight
	MbMiddle
)
View Source
const (
	FsSurface = iota + 0
	FsBorder
)
View Source
const (
	FmAlternate = iota + 0
	FmWinding
)
View Source
const (
	CsHandleValid = iota + 0
	CsFontValid
	CsPenValid
	CsBrushValid
	//lcl
	CsRegionValid
)
View Source
const (
	CoLeftToRight = iota + 0
	CoRightToLeft
)
View Source
const (
	TfBottom = iota + 0
	TfCalcRect
	TfCenter
	TfEditControl
	TfEndEllipsis
	TfPathEllipsis
	TfExpandTabs
	TfExternalLeading
	TfLeft
	TfModifyString
	TfNoClip
	TfNoPrefix
	TfRight
	TfRtlReading
	TfSingleLine
	TfTop
	TfVerticalCenter
	TfWordBreak
	TfHidePrefix
	TfNoFullWidthCharBreak
	TfPrefixOnly
	TfTabStop
	TfWordEllipsis
	TfComposited
)
View Source
const (
	BvNone = iota + 0
	BvLowered
	BvRaised
	BvSpace
)
View Source
const (
	BeLeft = iota + 0
	BeTop
	BeRight
	BeBottom
)
View Source
const (
	BkNone = iota + 0
	BkTile
	BkSoft
	BkFlat
)
View Source
const (
	TmBottomRight = iota + 0
	TmTopLeft
	TmBoth
)
View Source
const (
	TsNone = iota + 0
	TsAuto
	TsManual
)
View Source
const (
	PtNone = iota + 0
	PtTop
	PtLeft
	PtBottom
	PtRight
)
View Source
const (
	DtkDate = iota + 0
	DtkTime
	// lcl
	DtkDateTime
)
View Source
const (
	DmComboBox = iota + 0
	DmUpDown
	// lcl
	DmNone
)
View Source
const (
	DfShort = iota + 0
	DfLong
)
View Source
const (
	DtaLeft = iota + 0
	DtaRight
	// lcl
	DtaDefault
)
View Source
const (
	DowMonday = iota + 0
	DowTuesday
	DowWednesday
	DowThursday
	DowFriday
	DowSaturday
	DowSunday
	DowLocaleDefault
)
View Source
const (
	StWholeWord = iota + 0
	StMatchCase
)
View Source
const (
	NsNone = iota + 0
	NsBullte
)
View Source
const (
	AtSelected = iota + 0
	AtDefaultText
)
View Source
const (
	CaBold = iota + 0
	CaColor
	CaFace
	CaItalic
	CaSize
	CaStrikeOut
	CaUnderline
	CaProtected
)
View Source
const (
	IaTop = iota + 0
	IaLeft
)
View Source
const (
	HsGradient = iota + 0
	HsImage
	HsThemed
)
View Source
const (
	IiaLeft = iota + 0 // IaTop有冲突,所以增加一个i
	IiaRight
	IiaTop
	IiaBottom
	IiaCenter
)
View Source
const (
	AkTop = iota + 0
	AkLeft
	AkRight
	AkBottom
)
View Source
const (
	OdSelected = iota + 0
	OdGrayed
	OdDisabled
	OdChecked
	OdFocused
	OdDefault
	OdHotLight
	OdInactive
	OdNoAccel
	OdNoFocusRect
	OdReserved1
	OdReserved2
	OdComboBoxEdit
	OdBackgroundPainted // item background already painted
)
View Source
const (
	BkCustom = iota + 0
	BkOK
	BkCancel
	BkHelp
	BkYes
	BkNo
	BkClose
	BkAbort
	BkRetry
	BkIgnore
	BkAll
	BkNoToAll
	BkYesToAll
)
View Source
const (
	SbHorizontal = iota + 0
	SbVertical
)
View Source
const (
	SsRegular = iota + 0
	SsFlat
	SsHotTrack
)
View Source
const (
	StRectangle = iota + 0
	StSquare
	StRoundRect
	StRoundSquare
	StEllipse
	StCircle
	StSquaredDiamond
	StDiamond
	StTriangle
	StTriangleLeft
	StTriangleRight
	StTriangleDown
	StStar
	StStarDown
)
View Source
const (
	BsLowered = iota + 0
	BsRaised
)
View Source
const (
	BsBox = iota + 0
	BsFrame
	BsTopLine
	BsBottomLine
	BsLeftLine
	BsRightLine
	BsSpacer
)
View Source
const (
	GkText = iota + 0
	GkHorizontalBar
	GkVerticalBar
	GkPie
	GkNeedle
	GkHalfPie
)
View Source
const (
	DtControl = iota + 0
	DtItem
	DtSubItem
)
View Source
const (
	CdPrePaint = iota + 0
	CdPostPaint
	CdPreErase
	CdPostErase
)
View Source
const (
	CdsSelected = iota + 0
	CdsGrayed
	CdsDisabled
	CdsChecked
	CdsFocused
	CdsDefault
	CdsHot
	CdsMarked
	CdsIndeterminate
)
View Source
const (
	TbNoEdges = iota + 0
	TbHiliteHotTrack
	TbNoOffset
	TbNoMark
	TbNoEtchedEffect
)
View Source
const (
	DrBounds = iota + 0
	DrIcon
	DrLabel
	DrSelectBounds
)
View Source
const (
	SdAllowCreate = iota + 0
	SdPerformCreate
	SdPrompt
)
View Source
const (
	FrDown = iota + 0
	FrFindNext
	FrHideMatchCase
	FrHideWholeWord
	FrHideUpDown
	FrMatchCase
	FrDisableMatchCase
	FrDisableUpDown
	FrDisableWholeWord
	FrReplace
	FrReplaceAll
	FrWholeWord
	FrShowHelp

	// LCL
	FrEntireScope
	FrHideEntireScope
	FrPromptOnReplace
	FrHidePromptOnReplace
	FrButtonsAtBottom
)
View Source
const (
	DmManual = iota + 0
	DmAutomatic
)
View Source
const (
	DsDragEnter = iota + 0
	DsDragLeave
	DsDragMove
)
View Source
const (
	DkDrag = iota + 0
	DkDock
)
View Source
const (
	EcNormal = iota + 0
	EcUpperCase
	EcLowerCase
)
View Source
const (
	EbLeft = iota + 0
	EbTop
	EbRight
	EbBottom
)
View Source
const (
	EsNone = iota + 0
	EsRaised
	EsLowered
)
View Source
const (
	GdsClassic = iota + 0
	GdsThemed
	GdsGradient
)
View Source
const (
	GoFixedVertLine = iota + 0
	GoFixedHorzLine
	GoVertLine
	GoHorzLine
	GoRangeSelect
	GoDrawFocusSelected
	GoRowSizing
	GoColSizing
	GoRowMoving
	GoColMoving
	GoEditing
	GoAutoAddRows
	GoTabs
	GoRowSelect
	GoAlwaysShowEditor
	GoThumbTracking
	// Additional Options
	GoColSpanning                 // Enable cellextent calcs
	GoRelaxedRowSelect            // User can see focused cell on goRowSelect
	GoDblClickAutoSize            // dblclicking columns borders (on hdrs) resize col.
	GoSmoothScroll                // Switch scrolling mode (pixel scroll is by default)
	GoFixedRowNumbering           // Ya
	GoScrollKeepVisible           // keeps focused cell visible while scrolling
	GoHeaderHotTracking           // Header cells change look when mouse is over them
	GoHeaderPushedLook            // Header cells looks pushed when clicked
	GoSelectionActive             // Setting grid.Selection moves also cell cursor
	GoFixedColSizing              // Allow to resize fixed columns
	GoDontScrollPartCell          // clicking partially visible cells will not scroll
	GoCellHints                   // show individual cell hints
	GoTruncCellHints              // show cell hints if cell text is too long
	GoCellEllipsis                // show "..." if cell text is too long
	GoAutoAddRowsSkipContentCheck //BB Also add a row (if AutoAddRows in Options) if last row is empty
	GoRowHighlight                // Highlight the current Row
)
View Source
const (
	GdSelected = iota + 0
	GdFocused
	GdFixed
	GdHot
	GdPushed
	GdRowHighlight
)
View Source
const (
	//SdLeft = iota + 0
	//SdRight
	SdUp = iota + SdRight
	SdDown
)
View Source
const (
	HsText = iota + 0
	HsOwnerDraw
)
View Source
const (
	LpAbove = iota + 0
	LpBelow
	LpLeft
	LpRight
)
View Source
const (
	FsLeftRightTopBottom = iota + 0
	FsRightLeftTopBottom
	FsLeftRightBottomTop
	FsRightLeftBottomTop
	FsTopBottomLeftRight
	FsBottomTopLeftRight
	FsTopBottomRightLeft
	FsBottomTopRightLeft
)
View Source
const (
	BmNone = iota + 0
	BmClick
	BmDblClick
)
View Source
const (
	MbNone = iota + 0
	MbBreak
	MbBarBreak
)
View Source
const (
	TsTrackBegin = iota + 0
	TsTrackMove
	TsTrackEnd
)
View Source
const (
	CsLButtonDown = iota + 0
	CsClicked
	CsPalette
	CsReadingState
	CsFocusing
	CsCreating // not used, exists for Delphi compatibility
	CsPaintCopy
	CsCustomPaint
	CsDestroyingHandle
	CsDocking
	CsVisibleSetInLoading
)
View Source
const (
	CsAcceptsControls            = iota + 0 // can have children in the designer
	CsCaptureMouse                          // auto capture mouse when clicked
	CsDesignInteractive                     // wants mouse events in design mode
	CsClickEvents                           // handles mouse events
	CsFramed                                // not implemented, has 3d frame
	CsSetCaption                            // if Name=Caption, changing the Name changes the Caption
	CsOpaque                                // the control paints its area completely
	CsDoubleClicks                          // understands mouse double clicks
	CsTripleClicks                          // understands mouse triple clicks
	CsQuadClicks                            // understands mouse quad clicks
	CsFixedWidth                            // cannot change its width
	CsFixedHeight                           // cannot change its height (for example combobox)
	CsNoDesignVisible                       // is invisible in the designer
	CsReplicatable                          // PaintTo works
	CsNoStdEvents                           // standard events such as mouse, key, and click events are ignored.
	CsDisplayDragImage                      // display images from dragimagelist during drag operation over control
	CsReflector                             // not implemented, the controls respond to size, focus and dlg messages - it can be used as ActiveX control under Windows
	CsActionClient                          // Action is set
	CsMenuEvents                            // not implemented
	CsNoFocus                               // control will not take focus when clicked with mouse.
	CsNeedsBorderPaint                      // not implemented
	CsParentBackground                      // tells WinXP to paint the theme background of parent on controls background
	CsDesignNoSmoothResize                  // when resizing control in the designer do not SetBounds while dragging
	CsDesignFixedBounds                     // can not be moved nor resized in designer
	CsHasDefaultAction                      // implements useful ExecuteDefaultAction
	CsHasCancelAction                       // implements useful ExecuteCancelAction
	CsNoDesignSelectable                    // can not be selected at design time
	CsOwnedChildrenNotSelectable            // child controls owned by this control are NOT selectable in the designer
	CsAutoSize0x0                           // if the preferred size is 0x0 then control is shrinked ot 0x0
	CsAutoSizeKeepChildLeft                 // when AutoSize=true do not move children horizontally
	CsAutoSizeKeepChildTop                  // when AutoSize=true do not move children vertically
	CsRequiresKeyboardInput                 // If the device has no physical keyboard then show the virtual keyboard when this control gets focus (therefore available only to TWinControl descendents)
)
View Source
const (
	MaDefault = iota + 0
	MaActivate
	MaActivateAndEat
	MaNoActivate
	MaNoActivateAndEat
)
View Source
const (
	None = iota + 0
	Indeterminate
	Normal
	Error
	Paused
)
View Source
const (
	Enabled = iota + 0
	DismissOnClick
	NoBackground
	Hidden
	NonInteractive
)
View Source
const (
	AppThumbAlways = iota + 0
	AppThumbWhenActive
	AppPeekAlways
	AppPeekWhenActive
	CustomizedPreview
)
View Source
const (
	BmDIB = iota + 0
	BmDDB
)
View Source
const (
	PsNoDefine = iota + 0
	PsReady
	PsPrinting
	PsStopped
)
View Source
const (
	PoPortrait = iota + 0
	PoLandscape
	PoReverseLandscape
	PoReversePortrait
)
View Source
const (
	PcCopies = iota + 0
	PcOrientation
	PcCollation
)
View Source
const (
	PtLocal = iota + 0
	PtNetWork
)
View Source
const (
	RsUninitialized = iota + 0
	RsLoading
	RsLoaded
	RsInterActive
	RsComplete
)
View Source
const (
	SeUnknown = iota + 0
	SeANSI
	SeUnicode
	SeUTF8
)
View Source
const (
	StDefault = iota + 0 // use default rules for showing taskbar item
	StAlways             // always show taskbar item for the form
	StNever              // never show taskbar item for the form
)
View Source
const (
	TcbOk = iota + 0
	TcbYes
	TcbNo
	TcbCancel
	TcbRetry
	TcbClose
)
View Source
const (
	TfEnableHyperlinks = iota + 0
	TfUseHiconMain
	TfUseHiconFooter
	TfAllowDialogCancellation
	TfUseCommandLinks
	TfUseCommandLinksNoIcon
	TfExpandFooterArea
	TfExpandedByDefault
	TfVerificationFlagChecked
	TfShowProgressBar
	TfShowMarqueeProgressBar
	TfCallbackTimer
	TfPositionRelativeToWindow
	TfRtlLayout
	TfNoDefaultRadioButton
	TfCanBeMinimized
)
View Source
const (
	TdiNone = iota + 0
	TdiWarning
	TdiError
	TdiInformation
	TdiShield
	TdiQuestion // Lazarus所有
)
View Source
const (
	CsExDropDown = iota + 0
	CsExSimple
	CsExDropDownList
)
View Source
const (
	CsExCaseSensitive = iota + 0
	CsExNoEditImage
	CsExNoEditImageIndent
	CsExNoSizeLimit
	CsExPathWordBreak
)
View Source
const (
	AcoAutoSuggest = iota + 0
	AcoAutoAppend
	AcoSearch
	AcoFilterPrefixes
	AcoUseTab
	AcoUpDownKeyDropsList
	AcoRtlReading
)
View Source
const (
	DmDesktop = iota + 0
	DmPrimary
	DmMainForm
	DmActiveForm
)
View Source
const (
	TmAuto = iota + 0
	TmFixed
)
View Source
const (
	DimNormal = iota + 0
	DimCenter
	DimStretch
)
View Source
const (
	AmDontCare = iota + 0 // default antialiasing
	AmOn                  // enabled
	AmOff                 // disabled
)
View Source
const (
	SdAscending = iota + 0
	SdDescending
)
View Source
const (
	TvestTheme     = iota + 0 // use themed sign
	TvestPlusMinus            // use +/- sign
	TvestArrow                // use blank arrow
	TvestArrowFill            // use filled arrow
)
View Source
const (
	TvoAllowMultiselect = iota + 0
	TvoAutoExpand
	TvoAutoInsertMark
	TvoAutoItemHeight
	TvoHideSelection
	TvoHotTrack
	TvoKeepCollapsedNodes
	TvoReadOnly
	TvoRightClickSelect
	TvoRowSelect
	TvoShowButtons
	TvoShowLines
	TvoShowRoot
	TvoShowSeparators
	TvoToolTips
	TvoNoDoubleClickExpand
	TvoThemedDraw
)
View Source
const (
	GsmAlways      = iota + 0 // always show
	GsmNever                  // never show
	GsmApplication            // depends on application settings
	GsmSystem                 // depends on system settings
)
View Source
const (
	NboShowCloseButtons = iota + 0
	NboMultiLine
	NboHidePageListPopup
	NboKeyboardTabSwitch
	NboShowAddTabButton
	NboDoChangeOnSetIndex
)
View Source
const (
	AsrTop = iota + 0
	AsrBottom
	AsrCenter
)
View Source
const (
	CcaFill = iota + 0
	CcaLeftTop
	CcaRightBottom
	CcaCenter
)
View Source
const (
	CrsAnchorAligning        = iota + 0 // (like Delphi)
	CrsScaleChilds                      // scale children equally, keep space between children fixed
	CrsHomogenousChildResize            // enlarge children equally (i.e. by the same amount of pixel)
	CrsHomogenousSpaceResize            // enlarge space between children equally

)
View Source
const (
	CclNone                       = iota + 0
	CclLeftToRightThenTopToBottom // if BiDiMode <> bdLeftToRight then it becomes RightToLeft
	CclTopToBottomThenLeftToRight
)
View Source
const (
	ClHorizontalThenVertical = iota + 0
	ClVerticalThenHorizontal
)
View Source
const (
	LboDrawFocusRect = iota + 0 // draw focus rect in case of owner drawing
)
View Source
const (
	OfExNoPlacesBar = iota + 0
)
View Source
const (
	SbsNone = iota + 0
)

Variables

View Source
var (
	// Unicode Apple logo char
	AppleLogoChar = string([]byte{0xEF, 0xA3, 0xBF})
)

Functions

This section is empty.

Types

type ATOM added in v1.2.7

type ATOM = uint16

type Byte added in v1.1.18

type Byte = uint8

type COLORREF added in v1.1.18

type COLORREF = uint32

type Cardinal added in v1.1.18

type Cardinal = uint32

type Char

type Char = uint16

Unicode 主要用于keymap, 参见types/keys包

type DWORD added in v1.1.18

type DWORD = uint32

type HBITMAP

type HBITMAP = uintptr

type HBRUSH

type HBRUSH = uintptr

type HCURSOR added in v1.1.18

type HCURSOR = HICON

type HDC

type HDC = uintptr

type HFONT

type HFONT = uintptr

type HGDIOBJ

type HGDIOBJ = uintptr

type HGLOBAL added in v1.2.0

type HGLOBAL = uintptr

type HICON

type HICON = uintptr

type HINST added in v1.1.18

type HINST = uintptr

type HKEY

type HKEY = uintptr

type HMENU

type HMENU = uintptr

type HMODULE added in v1.1.18

type HMODULE = uintptr

type HMONITOR

type HMONITOR = uintptr

type HPALETTE added in v1.1.23

type HPALETTE = uintptr

type HPEN

type HPEN = uintptr

type HRGN added in v1.1.18

type HRGN = uintptr

type HRSRC added in v1.2.0

type HRSRC = uintptr

type HResult added in v1.1.23

type HResult = uintptr

type HWND

type HWND = uintptr

type IObjectArray added in v1.1.23

type IObjectArray uintptr

伪造,实际为一个接口类型

type Integer added in v1.1.18

type Integer = int32

type LPARAM added in v1.1.18

type LPARAM = uintptr

type LPCWSTR added in v1.1.18

type LPCWSTR = uintptr

type LRESULT added in v1.2.0

type LRESULT = uintptr

type PFNLVCOMPARE

type PFNLVCOMPARE uintptr

type PFNTVCOMPARE

type PFNTVCOMPARE uintptr

type SIZE_T

type SIZE_T = uintptr

type Single added in v1.1.18

type Single = float32

type TActionListState

type TActionListState int32

TActionListState = (asNormal, asSuspended, asSuspendedEnabled);

type TAddMode

type TAddMode int32

TAddMode = (taAddFirst, taAdd, taInsert);

type TAlign

type TAlign int32

TAlign = (alNone, alTop, alBottom, alLeft, alRight, alClient, alCustom);

type TAlignInfo added in v1.2.10

type TAlignInfo struct {
	AlignList    uintptr //: TList;
	ControlIndex int32
	Align        TAlign
	Scratch      int32
}

type TAlignSet

type TAlignSet = TSet

type TAlignment

type TAlignment int32

TAlignment = (taLeftJustify, taRightJustify, taCenter);

type TAnchorKind

type TAnchorKind int32

vcl TAnchorKind = (akLeft, akTop, akRight, akBottom); lcl TAnchorKind = (akTop, akLeft, akRight, akBottom);

type TAnchorSideReference

type TAnchorSideReference int32

type TAnchors

type TAnchors = TSet

TAnchors = set of TAnchorKind;

type TAntialiasingMode

type TAntialiasingMode int32

type TAtom added in v1.2.7

type TAtom = uint16

type TAttributeType

type TAttributeType int32

TAttributeType = (atSelected, atDefaultText);

type TAutoCompleteOption added in v1.2.7

type TAutoCompleteOption int32

type TAutoCompleteOptions added in v1.2.7

type TAutoCompleteOptions = TSet

set of TAutoCompleteOption;

type TBalloonFlags

type TBalloonFlags int32

type TBevelCut

type TBevelCut int32

TBevelCut = (bvNone, bvLowered, bvRaised, bvSpace);

type TBevelEdge

type TBevelEdge int32

TBevelEdge = (beLeft, beTop, beRight, beBottom);

type TBevelEdges

type TBevelEdges = TSet

TBevelEdges = set of TBevelEdge;

type TBevelKind

type TBevelKind int32

TBevelKind = (bkNone, bkTile, bkSoft, bkFlat);

type TBevelShape

type TBevelShape int32

TBevelShape = (bsBox, bsFrame, bsTopLine, bsBottomLine, bsLeftLine, bsRightLine, bsSpacer);

type TBevelStyle

type TBevelStyle int32

TBevelStyle = (bsLowered, bsRaised);

type TBiDiMode

type TBiDiMode int32

TBiDiMode = (bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly);

type TBitBtnKind

type TBitBtnKind int32
TBitBtnKind = (bkCustom, bkOK, bkCancel, bkHelp, bkYes, bkNo, bkClose,

bkAbort, bkRetry, bkIgnore, bkAll);

type TBitmapHandleType added in v1.1.23

type TBitmapHandleType int32

TBitmapHandleType

type TBorderIcon

type TBorderIcon int32

TBorderIcon = (biSystemMenu, biMinimize, biMaximize, biHelp);

type TBorderIcons

type TBorderIcons = TSet

TBorderIcons = set of TBorderIcon;

type TBorderStyle

type TBorderStyle int32

TFormBorderStyle = (bsNone, bsSingle, bsSizeable, bsDialog, bsToolWindow, bsSizeToolWin); TBorderStyle = bsNone..bsSingle;

type TBrushStyle

type TBrushStyle int32

TBrushStyle = (bsSolid, bsClear, bsHorizontal, bsVertical,

bsFDiagonal, bsBDiagonal, bsCross, bsDiagCross);

type TButtonLayout

type TButtonLayout int32

TButtonLayout = (blGlyphLeft, blGlyphRight, blGlyphTop, blGlyphBottom);

type TButtonState

type TButtonState int32

TButtonState = (bsUp, bsDisabled, bsDown, bsExclusive);

type TButtonStyle

type TButtonStyle int32

TButtonStyle = (bsPushButton, bsCommandLink, bsSplitButton);

type TCTabControlOption

type TCTabControlOption int32

These are LCL additions

type TCTabControlOptions

type TCTabControlOptions = TSet

type TCalDayOfWeek

type TCalDayOfWeek int32

{ Calendar common control support } TCalDayOfWeek = (dowMonday, dowTuesday, dowWednesday, dowThursday,

dowFriday, dowSaturday, dowSunday, dowLocaleDefault);

type TCanvasOrientation

type TCanvasOrientation int32

TCanvasOrientation = (coLeftToRight, coRightToLeft);

type TCanvasState

type TCanvasState = TSet

TCanvasState = set of TCanvasStates;

type TCanvasStates

type TCanvasStates int32

TCanvasStates = (csHandleValid, csFontValid, csPenValid, csBrushValid);

type TCheckBoxState

type TCheckBoxState int32

TCheckBoxState = (cbUnchecked, cbChecked, cbGrayed);

type TChildControlResizeStyle

type TChildControlResizeStyle int32

type TClass added in v1.1.18

type TClass uintptr

type TCloseAction

type TCloseAction int32

TCloseAction = (caNone, caHide, caFree, caMinimize);

type TColor

type TColor uint32

常用值请见 types/colors 包

func (TColor) B added in v1.2.8

func (c TColor) B() byte

func (TColor) G added in v1.2.8

func (c TColor) G() byte

func (TColor) R added in v1.2.8

func (c TColor) R() byte

TColor

func (TColor) RGB added in v1.2.8

func (c TColor) RGB(r, g, b byte) TColor

type TColorBoxStyle

type TColorBoxStyle int32

type TColorDepth

type TColorDepth int32

TColorDepth = (cdDefault, cdDeviceDependent, cd4Bit, cd8Bit, cd16Bit, cd24Bit, cd32Bit);

type TColorDialogOption

type TColorDialogOption int32

TColorDialogOption = (cdFullOpen, cdPreventFullOpen, cdShowHelp, cdSolidColor, cdAnyColor);

type TColorDialogOptions

type TColorDialogOptions = TSet

type TColumnLayout

type TColumnLayout int32

type TComboBoxExStyle added in v1.2.7

type TComboBoxExStyle int32

type TComboBoxExStyleEx added in v1.2.7

type TComboBoxExStyleEx int32

type TComboBoxExStyles added in v1.2.7

type TComboBoxExStyles = TSet

set of TComboBoxExStyleEx;

type TComboBoxStyle

type TComboBoxStyle int32

type TCompressionLevel

type TCompressionLevel = uint32

TCompressionLevel = 0..9;

type TConsistentAttribute

type TConsistentAttribute int32

TConsistentAttribute = (caBold, caColor, caFace, caItalic,

caSize, caStrikeOut, caUnderline, caProtected);

type TConsistentAttributes

type TConsistentAttributes = TSet

TConsistentAttributes = set of TConsistentAttribute;

type TConstraintSize added in v1.2.7

type TConstraintSize int32

TConstraintSize = 0..MaxInt;

type TControlCellAlign

type TControlCellAlign int32

type TControlCellAligns

type TControlCellAligns = TSet

type TControlChildrenLayout

type TControlChildrenLayout int32

type TControlState added in v1.1.21

type TControlState = TSet

TControlState = set of (csLButtonDown, csClicked, csPalette,

csReadingState, csAlignmentNeeded, csFocusing, csCreating,
csPaintCopy, csCustomPaint, csDestroyingHandle, csDocking,
csDesignerHide, csPanning, csRecreating, csAligning, csGlassPaint,
csPrintClient);

type TControlStyle added in v1.1.21

type TControlStyle = TSet

type TControlStyleType

type TControlStyleType int32

type TCoolBandMaximize added in v1.1.19

type TCoolBandMaximize int32

type TCursor

type TCursor int16

TCursor = -32768..32767;

type TCursorInfo added in v1.1.18

type TCursorInfo struct {
	CbSize      uint32
	Flags       uint32
	HCursor     HCURSOR
	PtScreenPos TPoint
}

TCursorInfo

type TCustomData added in v1.1.21

type TCustomData = uintptr

type TCustomDrawStage

type TCustomDrawStage int32

TCustomDrawStage = (cdPrePaint, cdPostPaint, cdPreErase, cdPostErase);

type TCustomDrawState

type TCustomDrawState = TSet

type TCustomDrawTarget

type TCustomDrawTarget int32

TCustomDrawTarget = (dtControl, dtItem, dtSubItem);

type TDTCalAlignment

type TDTCalAlignment int32

TDTCalAlignment = (dtaLeft, dtaRight);

type TDTDateFormat

type TDTDateFormat int32

TDTDateFormat = (dfShort, dfLong);

type TDTDateMode

type TDTDateMode int32

TDTDateMode = (dmComboBox, dmUpDown);

type TDWordFiller

type TDWordFiller struct {
	Filler [4]uint8
}

type TDateTimeKind

type TDateTimeKind int32

TDateTimeKind = (dtkDate, dtkTime);

type TDefaultMonitor added in v1.2.9

type TDefaultMonitor int32

type TDisplayCode

type TDisplayCode int32

TDisplayCode = (drBounds, drIcon, drLabel, drSelectBounds);

type TDragKind

type TDragKind int32

type TDragMode

type TDragMode int32

type TDragState

type TDragState int32

type TDrawImageMode added in v1.2.10

type TDrawImageMode int32

TDrawImageMode = (dimNormal, dimCenter, dimStretch);

type TDrawingStyle

type TDrawingStyle int32

TDrawingStyle = (dsFocus, dsSelected, dsNormal, dsTransparent);

type TEdgeBorder added in v1.1.19

type TEdgeBorder int32

type TEdgeBorders added in v1.1.19

type TEdgeBorders = TSet

set of TEdgeBorder

type TEdgeStyle added in v1.1.19

type TEdgeStyle int32

type TEditCharCase added in v1.1.19

type TEditCharCase int32

Editors common support=

type TEllipsisPosition

type TEllipsisPosition int32

TEllipsisPosition = (epNone, epPathEllipsis, epEndEllipsis, epWordEllipsis);

type TFNWndEnumProc added in v1.2.4

type TFNWndEnumProc = uintptr

type TFillMode

type TFillMode int32

TFillMode = (fmAlternate, fmWinding);

type TFillStyle

type TFillStyle int32

TFillStyle = (fsSurface, fsBorder);

type TFindOption

type TFindOption = uint32

TFindOption

type TFindOptions

type TFindOptions = TSet

TFindOptions = set of TFindOption

type TFlowStyle added in v1.1.19

type TFlowStyle int32

type TFontCharset

type TFontCharset = uint8

type TFontDialogOption

type TFontDialogOption int32

TFontDialogOption = (fdAnsiOnly, fdTrueTypeOnly, fdEffects,

fdFixedPitchOnly, fdForceFontExist, fdNoFaceSel, fdNoOEMFonts,
fdNoSimulations, fdNoSizeSel, fdNoStyleSel,  fdNoVectorFonts,
fdShowHelp, fdWysiwyg, fdLimitSize, fdScalableOnly, fdApplyButton);

type TFontDialogOptions

type TFontDialogOptions = TSet

TFontDialogOptions = set of TFontDialogOption;

type TFontPitch

type TFontPitch int32

TFontPitch = (fpDefault, fpVariable, fpFixed);

type TFontQuality

type TFontQuality int32

TFontQuality = (fqDefault, fqDraft, fqProof, fqNonAntialiased, fqAntialiased,

fqClearType, fqClearTypeNatural);

type TFontStyle

type TFontStyle int32

TFontStyle = (fsBold, fsItalic, fsUnderline, fsStrikeOut);

type TFontStyles

type TFontStyles = TSet

TFontStyles = set of TFontStyle

type TFormBorderStyle

type TFormBorderStyle TBorderStyle

type TFormStyle

type TFormStyle int32

vcl TFormStyle = (fsNormal, fsMDIChild, fsMDIForm, fsStayOnTop); lcl TFormStyle = (fsNormal, fsMDIChild, fsMDIForm, fsStayOnTop, fsSplash, fsSystemStayOnTop);

type TGIFAnimationLoop

type TGIFAnimationLoop int32

Animation loop behaviour TGIFAnimationLoop = (

glDisabled,                 // Never loop
glEnabled,                  // Loop is specified in GIF
glContinously               // Loop continously regardless of GIF
);

type TGIFDithering

type TGIFDithering int32

Auto dithering of GIF output to Netscape 216 color palette TGIFDithering = (

gdDisabled,                 // Never dither
gdEnabled,                  // Always dither
gdAuto                      // Dither if Desktop DC supports <= 256 colors.
);

type TGIFVersion

type TGIFVersion int32

TGIFVersion = (gvUnknown, gv87a, gv89a);

type TGUID added in v1.1.23

type TGUID struct {
	D1 uint32
	D2 uint16
	D3 uint16
	D4 [8]uint8
}

func (TGUID) Empty added in v1.2.8

func (g TGUID) Empty() TGUID

func (TGUID) FromString added in v1.2.8

func (g TGUID) FromString(str string) (result TGUID)

func (TGUID) IsEqual added in v1.2.8

func (g TGUID) IsEqual(val TGUID) bool

func (TGUID) ToString added in v1.2.8

func (g TGUID) ToString() string

type TGaugeKind

type TGaugeKind int32

TGaugeKind = (gkText, gkHorizontalBar, gkVerticalBar, gkPie, gkNeedle, gkHalfPie);

type TGlyphShowMode

type TGlyphShowMode int32

type TGradientDirection

type TGradientDirection int32

TGradientDirection = (gdHorizontal, gdVertical);

type TGridCoord added in v1.1.19

type TGridCoord struct {
	X int32
	Y int32
}

type TGridDrawState added in v1.1.19

type TGridDrawState = TSet

type TGridDrawingStyle added in v1.1.19

type TGridDrawingStyle int32

type TGridOption added in v1.1.19

type TGridOption = int32

Lazarus的Grids选项,跟Delphi有点不一样。

type TGridOptions added in v1.1.19

type TGridOptions = TSet

Delphi set of TGridOption, Lazarus set of TGridOptionLz

type TGridRect added in v1.1.19

type TGridRect TRect

type TGridScrollDirection added in v1.1.19

type TGridScrollDirection = uint32

type THeaderSectionStyle added in v1.1.19

type THeaderSectionStyle int32

type THeaderStyle

type THeaderStyle int32

THeaderStyle = (hsGradient, hsImage, hsThemed);

type THelpEventData

type THelpEventData = uintptr

type TIconArrangement

type TIconArrangement int32

TIconArrangement = (iaTop, iaLeft);

type TImageAlignment

type TImageAlignment int32

TImageAlignment = (iaLeft, iaRight, iaTop, iaBottom, iaCenter);

type TImageType

type TImageType int32

TImageType = (itImage, itMask);

type TItemChange

type TItemChange int32

TItemChange = (ctText, ctImage, ctState);

type TItemFind

type TItemFind int32

TItemFind = (ifData, ifPartialString, ifExactString, ifNearest);

type TItemRequests

type TItemRequests int32

TItemRequests = (irText, irImage, irParam, irState, irIndent);

type TItemState

type TItemState int32

TItemState = (isNone, isCut, isDropHilited, isFocused, isSelected, isActivating);

type TItemStates

type TItemStates = TSet

TItemStates = set of TItemState;

type TJPEGPerformance

type TJPEGPerformance int32

TJPEGPerformance = (jpBestQuality, jpBestSpeed);

type TJPEGPixelFormat

type TJPEGPixelFormat = TPixelFormat

TJPEGPixelFormat = (jf24Bit, jf8Bit);

type TJPEGQualityRange

type TJPEGQualityRange = uint32

TJPEGQualityRange = 1..100; // 100 = best quality, 25 = pretty awful

type TJPEGScale

type TJPEGScale int32

TJPEGScale = (jsFullSize, jsHalf, jsQuarter, jsEighth);

type TLabelPosition added in v1.1.19

type TLabelPosition int32

type TLeftRight

type TLeftRight int32

TLeftRight = TAlignment.taLeftJustify..TAlignment.taRightJustify;

type TLibResouce added in v1.1.23

type TLibResouce struct {
	Name string
	Ptr  uintptr
}

LibResouces

type TLinkAlignment

type TLinkAlignment TAlignment

type TListArrangement

type TListArrangement int32

TListArrangement = (arAlignBottom, arAlignLeft, arAlignRight, arAlignTop, arDefault, arSnapToGrid);

type TListBoxOption

type TListBoxOption int32

type TListBoxOptions

type TListBoxOptions = TSet

type TListBoxStyle

type TListBoxStyle int32

TListBoxStyle = (lbStandard, lbOwnerDrawFixed, lbOwnerDrawVariable, lbVirtual);

type TListHotTrackStyle

type TListHotTrackStyle int32

TListHotTrackStyle = (htHandPoint, htUnderlineCold, htUnderlineHot);

type TListHotTrackStyles

type TListHotTrackStyles = TSet

TListHotTrackStyles = set of TListHotTrackStyle;

type TLoadResource

type TLoadResource int32

TLoadResource = (lrDefaultColor, lrDefaultSize, lrFromFile, lrMap3DColors, lrTransparent, lrMonoChrome);

type TLoadResources

type TLoadResources = TSet

TLoadResources = set of TLoadResource;

type TMenuAutoFlag

type TMenuAutoFlag TMenuItemAutoFlag

TMenuAutoFlag = maAutomatic..maManual;

type TMenuBreak added in v1.1.19

type TMenuBreak int32

type TMenuItemAutoFlag

type TMenuItemAutoFlag int32

TMenuItemAutoFlag = (maAutomatic, maManual, maParent);

type TMessage added in v1.2.0

type TMessage struct {
	Msg Cardinal

	WParam WPARAM
	LParam LPARAM
	Result LRESULT
	// contains filtered or unexported fields
}

消息值参见 types/messages包

type TModalResult

type TModalResult = int32

type TMouseActivate added in v1.1.21

type TMouseActivate int32

type TMouseButton

type TMouseButton int32

vcl TMouseButton = (mbLeft, mbRight, mbMiddle); lcl TMouseButton = (mbLeft, mbRight, mbMiddle, mbExtra1, mbExtra2);

type TMsg

type TMsg struct {
	Hwnd    HWND
	Message uint32
	WParam  uintptr
	LParam  uintptr
	Time    uint32
	Pt      TPoint
}

TMsg: Only Windows, tagMSG

type TMsgDlgBtn

type TMsgDlgBtn int32

TMsgDlgBtn = (mbYes, mbNo, mbOK, mbCancel, mbAbort, mbRetry, mbIgnore,

mbAll, mbNoToAll, mbYesToAll, mbHelp, mbClose);

type TMsgDlgButtons

type TMsgDlgButtons = TSet

TMsgDlgButtons = set of TMsgDlgBtn;

type TMsgDlgType

type TMsgDlgType int32

TMsgDlgType = (mtWarning, mtError, mtInformation, mtConfirmation, mtCustom);

type TMultiSelectStyle

type TMultiSelectStyle = TSet

type TMultiSelectStyles

type TMultiSelectStyles int32

TMultiSelectStyles = (msControlSelect, msShiftSelect, msVisibleOnly, msSiblingOnly);

type TNodeAttachMode

type TNodeAttachMode int32

type TNodeState

type TNodeState int32

type TNumGlyphs

type TNumGlyphs int32

TNumGlyphs = 1..4;

type TNumberingStyle

type TNumberingStyle int32

TNumberingStyle = (nsNone, nsBullet);

type TOpenOption

type TOpenOption int32

{ TOpenDialog } TOpenOption = (ofReadOnly, ofOverwritePrompt, ofHideReadOnly,

ofNoChangeDir, ofShowHelp, ofNoValidate, ofAllowMultiSelect,
ofExtensionDifferent, ofPathMustExist, ofFileMustExist, ofCreatePrompt,
ofShareAware, ofNoReadOnlyReturn, ofNoTestFileCreate, ofNoNetworkButton,
ofNoLongNames, ofOldStyleDialog, ofNoDereferenceLinks, ofEnableIncludeNotify,
ofEnableSizing, ofDontAddToRecent, ofForceShowHidden);

type TOpenOptionEx

type TOpenOptionEx int32

TOpenOptionEx = (ofExNoPlacesBar);

type TOpenOptions

type TOpenOptions = TSet

TOpenOptions = set of TOpenOption;

type TOpenOptionsEx

type TOpenOptionsEx = TSet

TOpenOptionsEx = set of TOpenOptionEx;

type TOwnerDrawState

type TOwnerDrawState = TSet

TOwnerDrawState = set of (odSelected, odGrayed, odDisabled, odChecked,

odFocused, odDefault, odHotLight, odInactive, odNoAccel, odNoFocusRect,
odReserved1, odReserved2, odComboBoxEdit);

type TOwnerDrawStateType

type TOwnerDrawStateType int32

type TPageMeasureUnits

type TPageMeasureUnits int32

TPageMeasureUnits = (pmDefault, pmMillimeters, pmInches);

type TPageSetupDialogOption

type TPageSetupDialogOption int32

TPageSetupDialogOption = (psoDefaultMinMargins, psoDisableMargins,

psoDisableOrientation, psoDisablePagePainting, psoDisablePaper, psoDisablePrinter,
psoMargins, psoMinMargins, psoShowHelp, psoWarning, psoNoNetworkButton);

type TPageSetupDialogOptions

type TPageSetupDialogOptions = TSet

TPageSetupDialogOptions = set of TPageSetupDialogOption;

type TPageType

type TPageType int32

TPageType = (ptEnvelope, ptPaper);

type TPenMode

type TPenMode int32

TPenMode = (pmBlack, pmWhite, pmNop, pmNot, pmCopy, pmNotCopy,

pmMergePenNot, pmMaskPenNot, pmMergeNotPen, pmMaskNotPen, pmMerge,
pmNotMerge, pmMask, pmNotMask, pmXor, pmNotXor);

type TPenStyle

type TPenStyle int32

type TPixelFormat

type TPixelFormat int32

TPixelFormat = (pfDevice, pf1bit, pf4bit, pf8bit, pf15bit, pf16bit, pf24bit, pf32bit, pfCustom);

type TPoint

type TPoint struct {
	X, Y int32
}

func Point added in v1.2.10

func Point(x, y int32) TPoint

func (TPoint) IsZero

func (p TPoint) IsZero() bool

func (*TPoint) Offset

func (p *TPoint) Offset(dx, dy int32)

func (*TPoint) Scale added in v1.1.18

func (p *TPoint) Scale(val float64)

func (*TPoint) Scale2 added in v1.1.18

func (p *TPoint) Scale2(val int)

type TPopupAlignment

type TPopupAlignment int32

TPopupAlignment = (paLeft, paRight, paCenter);

type TPosition

type TPosition int32

TPosition = (poDesigned, poDefault, poDefaultPosOnly, poDefaultSizeOnly, poScreenCenter, poDesktopCenter, poMainFormCenter, poOwnerFormCenter);

type TPositionToolTip

type TPositionToolTip int32

TPositionToolTip = (ptNone, ptTop, ptLeft, ptBottom, ptRight);

type TPrintDialogOption

type TPrintDialogOption int32

TPrintDialogOption = (poPrintToFile, poPageNums, poSelection, poWarning,

poHelp, poDisablePrintToFile);

type TPrintDialogOptions

type TPrintDialogOptions = TSet

TPrintDialogOptions = set of TPrintDialogOption;

type TPrintRange

type TPrintRange int32

{ TPrintDialog } TPrintRange = (prAllPages, prSelection, prPageNums);

type TPrinterCapabilities added in v1.1.23

type TPrinterCapabilities = TSet

Set of TPrinterCapability

type TPrinterCapability added in v1.1.23

type TPrinterCapability int32

TPrinterCapability = (pcCopies, pcOrientation, pcCollation);

type TPrinterKind

type TPrinterKind int32

TPrinterKind = (pkDotMatrix, pkHPPCL);

type TPrinterOrientation added in v1.1.23

type TPrinterOrientation int32

TPrinterOrientation = (poPortrait, poLandscape);

type TPrinterState added in v1.1.23

type TPrinterState int32

TPrinterState = (psNoHandle, psHandleIC, psHandleDC);

type TPrinterType

type TPrinterType int32

type TProgressBarOrientation

type TProgressBarOrientation int32

TProgressBarOrientation = (pbHorizontal, pbVertical, pbRightToLeft, pbTopDown);

type TProgressBarState

type TProgressBarState int32

TProgressBarState = (pbsNormal, pbsError, pbsPaused);

type TProgressBarStyle

type TProgressBarStyle int32

TProgressBarStyle = (pbstNormal, pbstMarquee);

type TReadyState added in v1.2.1

type TReadyState int32

type TRect

type TRect struct {
	Left, Top, Right, Bottom int32
}

func Rect added in v1.2.10

func Rect(left, top, right, bottom int32) TRect

func (TRect) CenterPoint

func (r TRect) CenterPoint() (ret TPoint)

func (TRect) Contains

func (r TRect) Contains(aR TRect) bool

func (*TRect) Empty added in v1.1.18

func (r *TRect) Empty()

func (TRect) Height

func (r TRect) Height() int32

func (*TRect) Inflate

func (r *TRect) Inflate(dx, dy int32)

func (TRect) IntersectsWith

func (r TRect) IntersectsWith(aR TRect) bool

func (TRect) IsEmpty

func (r TRect) IsEmpty() bool

func (TRect) PtInRect

func (r TRect) PtInRect(P TPoint) bool

func (*TRect) Scale added in v1.1.18

func (r *TRect) Scale(val float64)

func (*TRect) Scale2 added in v1.1.18

func (r *TRect) Scale2(val int)

func (*TRect) SetHeight

func (r *TRect) SetHeight(val int32)

func (*TRect) SetSize

func (r *TRect) SetSize(w, h int32)

func (*TRect) SetWidth

func (r *TRect) SetWidth(val int32)

func (TRect) Size

func (r TRect) Size() TSize

func (TRect) Width

func (r TRect) Width() int32

type TResType

type TResType int32

TResType = (rtBitmap, rtCursor, rtIcon);

type TScrollBarInc

type TScrollBarInc int16

TScrollBarInc = 1..32767;

type TScrollBarKind

type TScrollBarKind int32

TScrollBarKind = (sbHorizontal, sbVertical);

type TScrollBarStyle

type TScrollBarStyle int32

TScrollBarStyle = (ssRegular, ssFlat, ssHotTrack);

type TScrollStyle

type TScrollStyle int32

TScrollStyle = (ssNone, ssHorizontal, ssVertical, ssBoth);

type TSearchDirection

type TSearchDirection int32

TSearchDirection = (sdLeft, sdRight, sdAbove, sdBelow, sdAll);

type TSearchType

type TSearchType int32

TSearchType = (stWholeWord, stMatchCase);

type TSearchTypes

type TSearchTypes = TSet

type TSectionTrackState added in v1.1.19

type TSectionTrackState int32

type TSeekOrigin

type TSeekOrigin int32

TSeekOrigin = (soBeginning, soCurrent, soEnd);

type TSelectDirOpt

type TSelectDirOpt int32

TSelectDirOpt = (sdAllowCreate, sdPerformCreate, sdPrompt);

type TSelectDirOpts

type TSelectDirOpts = TSet

TSelectDirOpts = set of TSelectDirOpt;

type TSet added in v1.2.10

type TSet uint32

Pascal集合类型 set of xxx

func NewSet added in v1.2.10

func NewSet(opts ...uint8) TSet

新建TSet,初始值为0,然后添加元素

func (TSet) Exclude added in v1.2.10

func (s TSet) Exclude(val ...uint8) TSet

集合减法,val...中存储为位的索引,下标为0

func (TSet) In added in v1.2.10

func (s TSet) In(val uint32) bool

集合类型的判断,val表示位数,下标为0

func (TSet) Include added in v1.2.10

func (s TSet) Include(val ...uint8) TSet

集合加法,val...中存储为位的索引,下标为0

type TShapeType

type TShapeType int32

type TShiftState

type TShiftState = TSet

type TShortCut

type TShortCut uint16

type TShowInTaskbar added in v1.2.4

type TShowInTaskbar int32

type TSize

type TSize struct {
	Cx, Cy int32
}

type TSmallPoint added in v1.1.21

type TSmallPoint struct {
	X int16
	Y int16
}

func (TSmallPoint) Empty added in v1.2.8

func (s TSmallPoint) Empty() TSmallPoint

TSmallPoint

func (TSmallPoint) IsEqual added in v1.2.8

func (s TSmallPoint) IsEqual(val TSmallPoint) bool

type TSortDirection

type TSortDirection int32

type TSortType

type TSortType int32

TSortType = (stNone, stData, stText, stBoth);

type TSpacingSize

type TSpacingSize int32

type TStaticBorderStyle

type TStaticBorderStyle int32

TStaticBorderStyle = (sbsNone, sbsSingle, sbsSunken);

type TStatusPanelBevel

type TStatusPanelBevel int32

TStatusPanelBevel = (pbNone, pbLowered, pbRaised);

type TStatusPanelStyle

type TStatusPanelStyle int32

TStatusPanelStyle = (psText, psOwnerDraw);

type TStringEncoding added in v1.2.2

type TStringEncoding int32

type TStringsOption

type TStringsOption = uint32

TStringsOption = (soStrictDelimiter, soWriteBOM, soTrailingLineBreak, soUseLocale);

type TStringsOptions

type TStringsOptions = TSet

TStringsOptions = set of TStringsOption;

type TSysLinkType

type TSysLinkType int32

TSysLinkType = (sltURL, sltID);

type TSysLocale added in v1.1.21

type TSysLocale struct {
	//Delphi compat fields
	DefaultLCID int32
	PriLangID   int32
	SubLangID   int32

	// win32 names
	FarEast    bool
	MiddleEast bool
}

type TTBCustomDrawFlags

type TTBCustomDrawFlags = TSet

TTBCustomDrawFlags = set of (tbNoEdges, tbHiliteHotTrack, tbNoOffset, tbNoMark, tbNoEtchedEffect);

type TTBDrawingStyle

type TTBDrawingStyle int32

TTBDrawingStyle = (dsNormal, dsGradient);

type TTBGradientDrawingOption

type TTBGradientDrawingOption int32

TTBGradientDrawingOption = (gdoHotTrack, gdoGradient)

type TTBGradientDrawingOptions

type TTBGradientDrawingOptions = TSet

TTBGradientDrawingOptions = set of (gdoHotTrack, gdoGradient);

type TTabOrder

type TTabOrder = int16

type TTabPosition

type TTabPosition int32

TTabPosition = (tpTop, tpBottom, tpLeft, tpRight);

type TTabStyle

type TTabStyle int32

TTabStyle = (tsTabs, tsButtons, tsFlatButtons);

type TTaskBarProgressState added in v1.1.23

type TTaskBarProgressState int32

type TTaskDialogCommonButton added in v1.2.4

type TTaskDialogCommonButton int32

type TTaskDialogCommonButtons added in v1.2.4

type TTaskDialogCommonButtons = TSet

Set of TTaskDialogCommonButton

type TTaskDialogFlag added in v1.2.4

type TTaskDialogFlag int32

type TTaskDialogFlags added in v1.2.4

type TTaskDialogFlags = TSet

set of TTaskDialogFlag;

type TTaskDialogIcon added in v1.2.4

type TTaskDialogIcon int32

TTaskDialogIcon = Low(Integer)..High(Integer);

type TTextFormat

type TTextFormat = TSet

TTextFormat = set of TTextFormats;

type TTextFormats

type TTextFormats int32

// Note: tfComposited only supported by ThemeServices.DrawText TTextFormats = (tfBottom, tfCalcRect, tfCenter, tfEditControl, tfEndEllipsis,

tfPathEllipsis, tfExpandTabs, tfExternalLeading, tfLeft, tfModifyString,
tfNoClip, tfNoPrefix, tfRight, tfRtlReading, tfSingleLine, tfTop,
tfVerticalCenter, tfWordBreak, tfHidePrefix, tfNoFullWidthCharBreak,
tfPrefixOnly, tfTabStop, tfWordEllipsis, tfComposited);

type TTextLayout

type TTextLayout int32

TTextLayout = (tlTop, tlCenter, tlBottom);

type TThumbButtonState added in v1.1.23

type TThumbButtonState int32

TThumbButtonState = (Enabled, DismissOnClick, NoBackground, Hidden, NonInteractive);

type TThumbButtonStates added in v1.1.23

type TThumbButtonStates = TSet

TThumbButtonStates = set of TThumbButtonState;

type TThumbTabProperties added in v1.1.23

type TThumbTabProperties = TSet

TThumbTabProperties = set of TThumbTabProperty;

type TThumbTabProperty added in v1.1.23

type TThumbTabProperty int32

TThumbTabProperty = (AppThumbAlways, AppThumbWhenActive, AppPeekAlways, AppPeekWhenActive, CustomizedPreview);

type TTickMark

type TTickMark int32

TTickMark = (tmBottomRight, tmTopLeft, tmBoth);

type TTickStyle

type TTickStyle int32

TTickStyle = (tsNone, tsAuto, tsManual);

type TToolButtonStyle

type TToolButtonStyle int32

type TTrackBarOrientation

type TTrackBarOrientation int32

TTrackBarOrientation = (trHorizontal, trVertical);

type TTrackButton

type TTrackButton int32

TTrackButton = (tbRightButton, tbLeftButton);

type TTransparentMode added in v1.2.10

type TTransparentMode int32

TTransparentMode = (tmAuto, tmFixed);

type TTreeViewExpandSignType

type TTreeViewExpandSignType int32

type TTreeViewOption

type TTreeViewOption int32

type TTreeViewOptions

type TTreeViewOptions = TSet

type TUDBtnType

type TUDBtnType int32

TUDBtnType = (btNext, btPrev);

type TUDOrientation

type TUDOrientation int32

TUDOrientation = (udHorizontal, udVertical);

type TVerticalAlignment

type TVerticalAlignment int32

TVerticalAlignment = (taAlignTop, taAlignBottom, taVerticalCenter);

type TViewStyle

type TViewStyle int32

TViewStyle = (vsIcon, vsSmallIcon, vsList, vsReport);

type TWMKey

type TWMKey struct {
	Msg       uint32
	MsgFiller TDWordFiller
	CharCode  [2]uint16 // 第二个元素未使用
	// CharCode: Word;
	// Unused: Word;
	CharCodeUnusedFiller TDWordFiller
	KeyData              uint32
	KeyDataFiller        TDWordFiller
	Result               uintptr
}

TWMKey

type TWindowState

type TWindowState int32

TWindowState = (wsNormal, wsMinimized, wsMaximized);

type TWndClass added in v1.1.18

type TWndClass struct {
	Style         uint32
	LpfnWndProc   uintptr
	CbClsExtra    int32
	CbWndExtra    int32
	HInstance     uintptr
	HIcon         HICON
	HCursor       HCURSOR
	HbrBackground HBRUSH
	LpszMenuName  LPCWSTR
	LpszClassName LPCWSTR
}

TWndClass

type TXID added in v1.2.4

type TXID = uint64

type UINT added in v1.1.18

type UINT = uint32

type WPARAM

type WPARAM = uintptr

type Word added in v1.1.18

type Word = uint16

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL