Documentation ¶
Index ¶
- Constants
- Variables
- type ATOM
- type Byte
- type COLORREF
- type Cardinal
- type Char
- type DWORD
- type DWORD_PTR
- type HBITMAP
- type HBRUSH
- type HCURSOR
- type HDC
- type HFONT
- type HGDIOBJ
- type HGLOBAL
- type HICON
- type HINST
- type HKEY
- type HMENU
- type HMODULE
- type HMONITOR
- type HPALETTE
- type HPEN
- type HRGN
- type HRSRC
- type HResult
- type HWND
- type IObjectArray
- type Integer
- type LPARAM
- type LPCWSTR
- type LRESULT
- type PFNLVCOMPARE
- type PFNTVCOMPARE
- type SIZE_T
- type Single
- type TActionListState
- type TAddMode
- type TAlign
- type TAlignInfo
- type TAlignSet
- type TAlignment
- type TAnchorKind
- type TAnchorSideReference
- type TAnchors
- type TAntialiasingMode
- type TArrowShape
- type TAtom
- type TAttributeType
- type TAutoAdvance
- type TAutoCompleteOption
- type TAutoCompleteOptions
- type TBalloonFlags
- type TBevelCut
- type TBevelEdge
- type TBevelEdges
- type TBevelKind
- type TBevelShape
- type TBevelStyle
- type TBiDiMode
- type TBitBtnKind
- type TBitmapHandleType
- type TBorderIcon
- type TBorderIcons
- type TBorderStyle
- type TBrushStyle
- type TButtonLayout
- type TButtonState
- type TButtonStyle
- type TCTabControlOption
- type TCTabControlOptions
- type TCalDayOfWeek
- type TCanvasOrientation
- type TCanvasState
- type TCanvasStates
- type TCellHintPriority
- type TCheckBoxState
- type TChildControlResizeStyle
- type TClass
- type TClipboardFormat
- type TCloseAction
- type TColor
- type TColorBoxStyle
- type TColorDepth
- type TColorDialogOption
- type TColorDialogOptions
- type TColumnButtonStyle
- type TColumnLayout
- type TComboBoxExStyle
- type TComboBoxExStyleEx
- type TComboBoxExStyles
- type TComboBoxStyle
- type TConsistentAttribute
- type TConsistentAttributes
- type TConstraintSize
- type TControlCellAlign
- type TControlCellAligns
- type TControlChildrenLayout
- type TControlState
- type TControlStateType
- type TControlStyle
- type TControlStyleType
- type TCoolBandMaximize
- type TCreateParams
- type TCursor
- type TCursorInfo
- type TCustomData
- type TCustomDrawStage
- type TCustomDrawState
- type TCustomDrawStateFlag
- type TCustomDrawTarget
- type TDTCalAlignment
- type TDTDateFormat
- type TDTDateMode
- type TDWordFiller
- type TDateDisplayOrder
- type TDateTimeKind
- type TDateTimePart
- type TDateTimeParts
- type TDateTimePickerOption
- type TDateTimePickerOptions
- type TDefaultMonitor
- type TDisplayCode
- type TDisplaySetting
- type TDragKind
- type TDragMode
- type TDragState
- type TDrawImageMode
- type TDrawingStyle
- type TEdgeBorder
- type TEdgeBorders
- type TEdgeStyle
- type TEditCharCase
- type TEllipsisPosition
- type TFNWndEnumProc
- type TFillMode
- type TFillStyle
- type TFindOption
- type TFindOptions
- type TFlowStyle
- type TFontCharset
- type TFontDialogOption
- type TFontDialogOptions
- type TFontPitch
- type TFontQuality
- type TFontStyle
- type TFontStyles
- type TFormBorderStyle
- type TFormStyle
- type TGUID
- type TGaugeKind
- type TGlyphShowMode
- type TGradientDirection
- type TGraphicsDrawEffect
- type TGridCoord
- type TGridDrawState
- type TGridDrawStates
- type TGridDrawingStyle
- type TGridOption
- type TGridOption2
- type TGridOptions
- type TGridOptions2
- type TGridRect
- type TGridZone
- type TGridZoneSet
- type THeaderSectionStyle
- type THeaderStyle
- type THelpEventData
- type THitTest
- type THitTests
- type TIconArrangement
- type TImageAlignment
- type TImageOrientation
- type TImageType
- type TItemChange
- type TItemFind
- type TItemRequests
- type TItemState
- type TItemStates
- type TJPEGPerformance
- type TJPEGPixelFormat
- type TLabelPosition
- type TLayoutAdjustmentPolicy
- type TLeftRight
- type TLibResource
- type TLibType
- type TLinkAlignment
- type TListArrangement
- type TListBoxOption
- type TListBoxOptions
- type TListBoxStyle
- type TListHotTrackStyle
- type TListHotTrackStyles
- type TListItemState
- type TListItemStates
- type TLoadResource
- type TLoadResources
- type TMenuBreak
- type TMessage
- type TModalResult
- type TMouseActivate
- type TMouseButton
- type TMouseWheelOption
- type TMsg
- type TMsgDlgBtn
- type TMsgDlgButtons
- type TMsgDlgType
- type TMultiSelectStyle
- type TMultiSelectStyles
- type TNodeAttachMode
- type TNodeState
- type TNumGlyphs
- type TNumberingStyle
- type TOpenOption
- type TOpenOptionEx
- type TOpenOptions
- type TOpenOptionsEx
- type TOwnerDrawState
- type TOwnerDrawStateType
- type TPageMeasureUnits
- type TPageSetupDialogOption
- type TPageSetupDialogOptions
- type TPageType
- type TPenMode
- type TPenStyle
- type TPixelFormat
- type TPoint
- type TPopupAlignment
- type TPosition
- type TPositionToolTip
- type TPredefinedClipboardFormat
- type TPrefixOption
- type TPrintDialogOption
- type TPrintDialogOptions
- type TPrintRange
- type TPrinterCapabilities
- type TPrinterCapability
- type TPrinterKind
- type TPrinterOrientation
- type TPrinterState
- type TPrinterType
- type TProgressBarOrientation
- type TProgressBarState
- type TProgressBarStyle
- type TRangeSelectMode
- type TReadyState
- type TRect
- func (r TRect) CenterPoint() (ret TPoint)
- func (r TRect) Contains(aR TRect) bool
- func (r *TRect) Empty()
- func (r TRect) Height() int32
- func (r *TRect) Inflate(dx, dy int32)
- func (r TRect) IntersectsWith(aR TRect) bool
- func (r TRect) IsEmpty() bool
- func (r TRect) PtInRect(P TPoint) bool
- func (r *TRect) Scale(val float64)
- func (r *TRect) Scale2(val int)
- func (r *TRect) SetHeight(val int32)
- func (r *TRect) SetSize(w, h int32)
- func (r *TRect) SetWidth(val int32)
- func (r TRect) Size() TSize
- func (r TRect) Width() int32
- type TResItem
- type TResType
- type TScrollBarInc
- type TScrollBarKind
- type TScrollBarStyle
- type TScrollStyle
- type TSearchDirection
- type TSearchType
- type TSearchTypes
- type TSectionTrackState
- type TSeekOrigin
- type TSelectDirOpt
- type TSelectDirOpts
- type TSet
- type TShapeType
- type TShiftState
- type TShiftStateEnum
- type TShortCut
- type TShowInTaskbar
- type TSize
- type TSmallPoint
- type TSortDirection
- type TSortIndicator
- type TSortOrder
- type TSortType
- type TSpacingSize
- type TStaticBorderStyle
- type TStatusPanelStyle
- type TStringEncoding
- type TStringsOption
- type TStringsOptions
- type TSysLinkType
- type TSysLocale
- type TTBGradientDrawingOption
- type TTBGradientDrawingOptions
- type TTabOrder
- type TTabPosition
- type TTabStyle
- type TTaskBarProgressState
- type TTaskDialogCommonButton
- type TTaskDialogCommonButtons
- type TTaskDialogFlag
- type TTaskDialogFlags
- type TTaskDialogIcon
- type TTextFormat
- type TTextFormats
- type TTextLayout
- type TThreadID
- type TTickMark
- type TTickStyle
- type TTimeDisplay
- type TTimeFormat
- type TTitleStyle
- type TToolButtonStyle
- type TTrackBarOrientation
- type TTrackButton
- type TTransparentMode
- type TTreeViewExpandSignType
- type TTreeViewOption
- type TTreeViewOptions
- type TUDBtnType
- type TUDOrientation
- type TUTF8Char
- type TVerticalAlignment
- type TViewStyle
- type TWMKey
- type TWindowState
- type TWndClass
- type TWrapAfter
- type TXId
- type UINT
- type WPARAM
- type Word
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 )
MessageBox 或 MessageDlg 的返回值 MessageBox or MessageDlg return value
View Source
const ( CF_BITMAP = 2 CF_DIB = 8 CF_PALETTE = 9 CF_ENHMETAFILE = 14 CF_METAFILEPICT = 3 CF_OEMTEXT = 7 CF_TEXT = 1 CF_UNICODETEXT = 13 CF_DIF = 5 CF_DSPBITMAP = 130 CF_DSPENHMETAFILE = 142 CF_DSPMETAFILEPICT = 131 CF_DSPTEXT = 129 CF_GDIOBJFIRST = 768 CF_GDIOBJLAST = 1023 CF_HDROP = 15 CF_LOCALE = 16 CF_OWNERDISPLAY = 128 CF_PENDATA = 10 CF_PRIVATEFIRST = 512 CF_PRIVATELAST = 767 CF_RIFF = 11 CF_SYLK = 4 CF_WAVE = 12 CF_TIFF = 6 // custom CF_PICTURE = 700 CF_HTML = 701 CF_COMPONENT = 702 )
预定义的剪贴板格式 Predefined Clipboard Formats
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 = TCursor(-30) )
鼠标光标定义 mouse cursor definition.
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 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 ( 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 ( 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 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 ( PaLeft = iota + 0 PaRight PaCenter )
View Source
const ( TbRightButton = iota + 0 TbLeftButton )
View Source
const ( PbHorizontal = iota + 0 PbVertical 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 BsHot // button is under mouse )
View Source
const ( BsAutoDetect = iota + 0 BsWin31 BsNew )
View Source
const ( SbsNone = iota + 0 SbsSingle SbsSunken )
View Source
const ( FsBold = iota + 0 FsItalic FsUnderline FsStrikeOut )
View Source
const ( SsNone = iota + 0 SsHorizontal SsVertical SsBoth SsAutoHorizontal SsAutoVertical SsAutoBoth )
View Source
const ( StNone = iota + 0 StData StText StBoth )
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 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 ( JpBestQuality = iota + 0 JpBestSpeed )
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 ( MsControlSelect = iota + 0 MsShiftSelect MsVisibleOnly MsSiblingOnly )
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 ( 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 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 PrCurrentPage )
View Source
const ( PoPrintToFile = iota + 0 PoPageNums PoSelection PoWarning PoHelp PoDisablePrintToFile 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 MbExtra1 MbExtra2 )
View Source
const ( FsSurface = iota + 0 FsBorder )
View Source
const ( FmAlternate = iota + 0 FmWinding )
View Source
const ( CsHandleValid = iota + 0 CsFontValid CsPenValid CsBrushValid 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 DtkDateTime )
View Source
const ( DmComboBox = iota + 0 DmUpDown DmNone )
View Source
const ( DfShort = iota + 0 DfLong )
View Source
const ( DtaLeft = iota + 0 DtaRight 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 IiaRight IiaTop IiaBottom IiaCenter )
IaTop有冲突,所以增加一个i
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 ( 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 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 ( 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 ( 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 TfAllowDialogCancellation TfUseCommandLinks TfUseCommandLinksNoIcon TfExpandedByDefault TfVerificationFlagChecked TfShowProgressBar TfShowMarqueeProgressBar TfCallbackTimer TfPositionRelativeToWindow TfRtlLayout TfNoDefaultRadioButton TfCanBeMinimized )
View Source
const ( TdiNone = iota + 0 TdiWarning TdiError TdiInformation TdiShield TdiQuestion )
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 ( SiNone = iota + 0 SiAscending SiDescending )
View Source
const ( CbsAuto = iota + 0 CbsEllipsis CbsNone CbsPickList CbsCheckboxColumn CbsButton CbsButtonColumn )
View Source
const ( GzNormal = iota + 0 GzFixedCols GzFixedRows GzFixedCells GzInvalid )
View Source
const ( SoAscending = iota + 0 SoDescending )
View Source
const ( AaNone = iota + 0 AaDown AaRight AaLeft AaRightDown AaLeftDown AaRightUp AaLeftUp )
View Source
const ( ChpAll = iota + 0 ChpAllNoDefault ChpTruncOnly )
View Source
const ( MwCursor = iota + 0 MwGrid )
View Source
const ( GoScrollToLastCol = iota + 0 // allow scrolling to last column (so that last column can be leftcol) GoScrollToLastRow // allow scrolling to last row (so that last row can be toprow) )
View Source
const ( RsmSingle = iota + 0 RsmMulti )
View Source
const ( TsLazarus = iota + 0 TsStandard TsNative )
View Source
const ( PoNone = iota + 0 PoHeaderClick )
View Source
const ( DsShowHeadings = iota + 0 DsShowDayNames DsNoMonthChange DsShowWeekNumbers DsStartMonday )
View Source
const ( Tf12 = iota + 0 // 12 hours format, with am/pm string Tf24 // 24 hours format )
View Source
const ( TdHM = iota + 0 // hour and minute TdHMS // hour Minute and second TdHMSMs // hour Minute Second and milisecond )
View Source
const ( AsClassicSmaller = iota + 0 AsClassicLarger AsModernSmaller AsModernLarger AsYetAnotherShape AsTheme )
View Source
const ( DdoDMY = iota + 0 DdoMDY DdoYMD DdoTryDefault )
View Source
const ( DtpDay = iota + 0 DtpMonth DtpYear DtpHour DtpMinute DtpSecond DtpMiliSec DtpAMPM )
View Source
const ( DtpoDoChangeOnSetDateTime = iota + 0 DtpoEnabledIfUnchecked DtpoAutoCheck DtpoFlatButton )
View Source
const ( IoHorizontal = iota + 0 IoVertical )
View Source
const ( LapDefault = iota + 0 // widgetset dependent LapFixedLayout // A fixed absolute layout in all platforms LapAutoAdjustWithoutHorizontalScrolling // Smartphone platforms use this one, // the x axis is stretched to fill the screen and // the y is scaled to fit the DPI LapAutoAdjustForDPI // For desktops using High DPI, scale x and y to fit the DPI )
View Source
const ( HtAbove = iota + 0 HtBelow HtNowhere HtOnItem HtOnButton HtOnIcon HtOnIndent HtOnLabel HtOnRight HtOnStateIcon HtToLeft HtToRight )
View Source
const ( LisCut = iota + 0 LisDropTarget LisFocused LisSelected )
View Source
const ( PcfText = iota + 0 PcfBitmap PcfPixmap PcfIcon PcfPicture PcfMetaFilePict PcfObject PcfComponent PcfCustomData )
View Source
const ( WaAuto = iota + 0 // auto WaForce // always wrap after this control WaAvoid // try not to wrap after this control, if the control is already at the beginning of the row, wrap though WaForbid // never wrap after this control )
View Source
const ( GdeNormal = iota + 0 // no effect GdeDisabled // grayed image GdeHighlighted // a bit highlighted image GdeShadowed // a bit shadowed image Gde1Bit // 1 Bit image (for non-XP windows buttons) )
View Source
const (
LboDrawFocusRect = iota + 0 // draw focus rect in case of owner drawing
)
View Source
const (
OfExNoPlacesBar = iota + 0
)
Variables ¶
View Source
var ( // Unicode Apple logo char AppleLogoChar = string([]byte{0xEF, 0xA3, 0xBF}) )
Functions ¶
This section is empty.
Types ¶
type PFNLVCOMPARE ¶
type PFNLVCOMPARE uintptr
type PFNTVCOMPARE ¶
type PFNTVCOMPARE uintptr
type TAlignInfo ¶
type TClipboardFormat ¶
type TClipboardFormat = uintptr
type TColorBoxStyle ¶
type TColorBoxStyle = TComboBoxStyle
type TCreateParams ¶
type TCreateParams struct { Caption LPCWSTR Style uint32 ExStyle uint32 X int32 Y int32 Width int32 Height int32 WndParent HWND Param uintptr WindowClass TWndClass WinClassName [64]int8 }
TCreateParams
Moved from Controls to avoid circles Since it is part of the interface now
type TCursorInfo ¶
TCursorInfo
type TCustomData ¶
type TCustomData = uintptr
type TDWordFiller ¶
type TDWordFiller struct {
Filler [4]uint8
}
type TFNWndEnumProc ¶
type TFNWndEnumProc = uintptr
type TFontCharset ¶
type TFontCharset = uint8
type TFormBorderStyle ¶
type TFormBorderStyle TBorderStyle
type TGUID ¶
func (TGUID) FromString ¶
type TGridCoord ¶
type THelpEventData ¶
type THelpEventData = uintptr
type TJPEGPixelFormat ¶
type TJPEGPixelFormat = TPixelFormat
type TLeftRight ¶
type TLeftRight int32
TLeftRight = TAlignment.taLeftJustify..TAlignment.taRightJustify;
type TLinkAlignment ¶
type TLinkAlignment TAlignment
type TMessage ¶
type TMessage struct { Msg Cardinal WParam WPARAM LParam LPARAM Result LRESULT // contains filtered or unexported fields }
TMessage 消息值参见 types/messages包
type TModalResult ¶
type TModalResult = int32
type TSet ¶
type TSet uint32
TSet Pascal集合类型 set of xxx
func NewSet ¶
NewSet
新建TSet,初始值为0,然后添加元素
Create a new TSet, the initial value is 0, and then add elements.
func (TSet) Exclude ¶
Exclude
集合减法,val...中存储为位的索引,下标为0
Set subtraction, stored as bit index in val..., subscript 0.
type TSmallPoint ¶
func (TSmallPoint) Empty ¶
func (s TSmallPoint) Empty() TSmallPoint
func (TSmallPoint) IsEqual ¶
func (s TSmallPoint) IsEqual(val TSmallPoint) bool
type TSpacingSize ¶
type TSpacingSize int32
type TSysLocale ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.