twgh / xcgui-example

Example of using the Go GUI library XCGUI. 炫彩界面库Go语言版例子

Home Page:https://github.com/twgh/xcgui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XCGUI例子

English | 简体中文

https://github.com/twgh/xcgui 的例子

用法

一、下载xcgui.dll到系统system32目录(如已下载则忽略这步)

(1)文件直链

64位 点击下载
32位 点击下载

(2)命令行下载

64位

curl -fL "https://pkggo-generic.pkg.coding.net/xcgui/file/xcgui.dll?version=latest" -o xcgui.dll

32位

curl -fL "https://pkggo-generic.pkg.coding.net/xcgui/file/xcgui-32.dll?version=latest" -o xcgui.dll

(3)使用getxcgui工具下载

请确保 %GOPATH%\bin 在环境变量path

go install github.com/twgh/getxcgui@latest
getxcgui  

如果要把dll直接下载到C:\Windows\System32目录里,请使用如下命令:

getxcgui -o %windir%\system32\xcgui.dll

此工具的源码在这里,更多flags可以点进去查看

(4)网盘下载

网盘内还包含界面设计器chm帮助文档

网盘 下载地址
百度网盘 下载
蓝奏云 下载

二、克隆项目到本地

(1)git克隆

git clone https://github.com/twgh/xcgui-example

(2)没有git的可以下载源码zip到本地后解压

点击下载

三、在项目目录里执行命令

go mod tidy
cd SimpleWindow && go run .

可视化UI设计器

uidesigner

简单窗口

SimpleWindow

ButtonImage