dialog

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var (
	FileNameMultiSelect uint32 = 0x00000200
	FileNameShowHidden  uint32 = 0x10000000
)
View Source
var (
	FolderEditBox            uint32 = 0x00000010
	FolderNewDialogStyle     uint32 = 0x00000040
	FolderNoNewFolderButton  uint32 = 0x00000200
	FolderBrowseIncludeFiles uint32 = 0x00004000
)
View Source
var (
	MsgBoxBtnOk                uint = 0x000000
	MsgBoxBtnOkCancel          uint = 0x000001
	MsgBoxBtnAbortRetryIgnore  uint = 0x000002
	MsgBoxBtnYesNoCancel       uint = 0x000003
	MsgBoxBtnYesNo             uint = 0x000004
	MsgBoxBtnRetryCancel       uint = 0x000005
	MsgBoxBtnCancelTryContinue uint = 0x000006
	MsgBoxIconNone             uint = 0x000000
	MsgBoxIconError            uint = 0x000010
	MsgBoxIconQuestion         uint = 0x000020
	MsgBoxIconWarning          uint = 0x000030
	MsgBoxIconInformation      uint = 0x000040
	MsgBoxDefaultButton1       uint = 0x000000
	MsgBoxDefaultButton2       uint = 0x000100
	MsgBoxDefaultButton3       uint = 0x000200
	MsgBoxDefaultButton4       uint = 0x000300
	MsgBoxTopMost              uint = 0x041000
	MsgBoxService              uint = 0x200000

	MsgBoxSelectOk       = 1
	MsgBoxSelectCancel   = 2
	MsgBoxSelectAbort    = 3
	MsgBoxSelectRetry    = 4
	MsgBoxSelectIgnore   = 5
	MsgBoxSelectYes      = 6
	MsgBoxSelectNo       = 7
	MsgBoxSelectTry      = 10
	MsgBoxSelectContinue = 11
)

Functions

func Folder

func Folder(title string, rootDir string, flag uint32, exLong bool) (string, error)

Folder create Browse For Folder dialog

func GetExistingFileName

func GetExistingFileName(title string, initDir string, filter FileNameFilters, flag uint32, exLong bool) ([]string, error)

GetExistingFileName create get existing file name dialog

func GetNewFileName

func GetNewFileName(title string, initDir string, filter FileNameFilters, flag uint32, exLong bool) (string, error)

GetNewFileName create new file name dialog

func MsgBox

func MsgBox(title string, msg string, flag uint) (int, error)

MsgBox create message box

Types

type FileError

type FileError int

func (FileError) Error

func (e FileError) Error() string

type FileNameFilters

type FileNameFilters map[string][]string

type MsgBoxError

type MsgBoxError uint32

func (MsgBoxError) Error

func (e MsgBoxError) Error() string

Jump to

Keyboard shortcuts

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