msgbox

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 4 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

msgbox

golang msgbox

一番シンプルな使い方

package main

import (
	"github.com/Tobotobo/msgbox"
)

func main() {
	msgbox.Show("テキスト")
}

情報アイコン、OKCancel、タイトルあり、判定あり

if msgbox.Info().OKCancel().Show("テキスト", "タイトル").IsOK() {
	fmt.Println("OK")
} else {
	fmt.Println("Cancel")
}

image

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button uint
const (
	ButtonAbortRetryIgnore Button = Button(walk.MsgBoxAbortRetryIgnore)
	ButtonOK               Button = Button(walk.MsgBoxOK)
	ButtonOKCancel         Button = Button(walk.MsgBoxOKCancel)
	ButtonRetryCancel      Button = Button(walk.MsgBoxRetryCancel)
	ButtonYesNo            Button = Button(walk.MsgBoxYesNo)
	ButtonYesNoCancel      Button = Button(walk.MsgBoxYesNoCancel)
)

type Icon

type Icon uint
const (
	IconNone        Icon = Icon(0)
	IconError       Icon = Icon(walk.MsgBoxIconError)
	IconExclamation Icon = Icon(walk.MsgBoxIconExclamation)
	IconHand        Icon = Icon(walk.MsgBoxIconHand)
	IconInformation Icon = Icon(walk.MsgBoxIconInformation)
	IconQuestion    Icon = Icon(walk.MsgBoxIconQuestion)
	IconStop        Icon = Icon(walk.MsgBoxIconStop)
	IconWarning     Icon = Icon(walk.MsgBoxIconWarning)
)

type MsgBox

type MsgBox struct {
	InnerValue msgBox
	Result     Result
}

func AbortRetryIgnore

func AbortRetryIgnore() *MsgBox

func DefBtn1

func DefBtn1() *MsgBox

func DefBtn2

func DefBtn2() *MsgBox

func DefBtn3

func DefBtn3() *MsgBox

func Err

func Err() *MsgBox

func Info

func Info() *MsgBox

func New

func New() *MsgBox

func OK

func OK() *MsgBox

func OKCancel

func OKCancel() *MsgBox

func Owner

func Owner(owner win.HWND) *MsgBox

func Ques

func Ques() *MsgBox

func RetryCancel

func RetryCancel() *MsgBox

func Show

func Show(text1caption2 ...string) *MsgBox

func Warn

func Warn() *MsgBox

func YesNo

func YesNo() *MsgBox

func YesNoCancel

func YesNoCancel() *MsgBox

func (*MsgBox) AbortRetryIgnore

func (mb *MsgBox) AbortRetryIgnore() *MsgBox

func (*MsgBox) DefBtn1

func (mb *MsgBox) DefBtn1() *MsgBox

----------------------------------------------------------------

DefaultButton

----------------------------------------------------------------

func (*MsgBox) DefBtn2

func (mb *MsgBox) DefBtn2() *MsgBox

func (*MsgBox) DefBtn3

func (mb *MsgBox) DefBtn3() *MsgBox

func (*MsgBox) Err

func (mb *MsgBox) Err() *MsgBox

func (*MsgBox) Info

func (mb *MsgBox) Info() *MsgBox

func (*MsgBox) IsAbort

func (mb *MsgBox) IsAbort() bool

func (*MsgBox) IsCancel

func (mb *MsgBox) IsCancel() bool

func (*MsgBox) IsIgnore

func (mb *MsgBox) IsIgnore() bool

func (*MsgBox) IsNo

func (mb *MsgBox) IsNo() bool

func (*MsgBox) IsNone

func (mb *MsgBox) IsNone() bool

func (*MsgBox) IsOK

func (mb *MsgBox) IsOK() bool

func (*MsgBox) IsRetry

func (mb *MsgBox) IsRetry() bool

func (*MsgBox) IsYes

func (mb *MsgBox) IsYes() bool

func (*MsgBox) OK

func (mb *MsgBox) OK() *MsgBox

func (*MsgBox) OKCancel

func (mb *MsgBox) OKCancel() *MsgBox

func (*MsgBox) Owner

func (mb *MsgBox) Owner(owner win.HWND) *MsgBox

func (*MsgBox) Ques

func (mb *MsgBox) Ques() *MsgBox

func (*MsgBox) RetryCancel

func (mb *MsgBox) RetryCancel() *MsgBox

func (*MsgBox) Show

func (mb *MsgBox) Show(text1caption2 ...string) *MsgBox

func (*MsgBox) Warn

func (mb *MsgBox) Warn() *MsgBox

func (*MsgBox) YesNo

func (mb *MsgBox) YesNo() *MsgBox

func (*MsgBox) YesNoCancel

func (mb *MsgBox) YesNoCancel() *MsgBox

type Result

type Result uint
const (
	ResultNone   Result = walk.DlgCmdNone
	ResultOK     Result = walk.DlgCmdOK
	ResultCancel Result = walk.DlgCmdCancel
	ResultYes    Result = walk.DlgCmdYes
	ResultNo     Result = walk.DlgCmdNo
	ResultAbort  Result = walk.DlgCmdAbort
	ResultIgnore Result = walk.DlgCmdIgnore
	ResultRetry  Result = walk.DlgCmdRetry
)

func (*Result) IsAbort

func (r *Result) IsAbort() bool

func (*Result) IsCancel

func (r *Result) IsCancel() bool

func (*Result) IsIgnore

func (r *Result) IsIgnore() bool

func (*Result) IsNo

func (r *Result) IsNo() bool

func (*Result) IsNone

func (r *Result) IsNone() bool

func (*Result) IsOK

func (r *Result) IsOK() bool

func (*Result) IsRetry

func (r *Result) IsRetry() bool

func (*Result) IsYes

func (r *Result) IsYes() bool

Jump to

Keyboard shortcuts

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