4 Star 22 Fork 9

aochulai / GoMiniblink

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Impl.go 882 Bytes
一键复制 编辑 原始数据 按行查看 历史
aochulai 提交于 2021-01-17 21:49 . 新增系统消息框
package MsgBox
import (
fm "gitee.com/aochulai/GoMiniblink/forms"
cs "gitee.com/aochulai/GoMiniblink/forms/controls"
)
func Show(param fm.MsgBoxParam) fm.MsgBoxResult {
return cs.App.NewMsgBox().Show(param)
}
func ShowInfo(title, text string) {
Show(fm.MsgBoxParam{
Title: title,
Text: text,
Icon: fm.MsgBoxIcon_Info,
Button: fm.MsgBoxButton_Ok,
})
}
func ShowQuestion(title, text string) fm.MsgBoxResult {
return Show(fm.MsgBoxParam{
Title: title,
Text: text,
Icon: fm.MsgBoxIcon_Question,
Button: fm.MsgBoxButton_YesNo,
})
}
func ShowWarn(title, text string) {
Show(fm.MsgBoxParam{
Title: title,
Text: text,
Icon: fm.MsgBoxIcon_Warn,
Button: fm.MsgBoxButton_Ok,
})
}
func ShowError(title, text string) {
Show(fm.MsgBoxParam{
Title: title,
Text: text,
Icon: fm.MsgBoxIcon_Error,
Button: fm.MsgBoxButton_Ok,
})
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/aochulai/GoMiniblink.git
git@gitee.com:aochulai/GoMiniblink.git
aochulai
GoMiniblink
GoMiniblink
7a3d1eeba729

搜索帮助

344bd9b3 5694891 D2dac590 5694891