Support win32, win64, linux64, macOS32 (linux and macOS only part of the components, properties, events and methods are valid)
go get gitee.com/ying32/govcl
package main
import (
"gitee.com/ying32/govcl/vcl"
)
var (
mainForm *vcl.TForm
)
func main() {
vcl.Application.SetIconResId(3)
vcl.Application.Initialize()
mainForm = vcl.Application.CreateForm()
mainForm.SetCaption("Hello")
mainForm.EnabledMaximize(false)
mainForm.ScreenCenter()
vcl.Application.Run()
}
-
Windows: copy "bin\win32\libvcl.dll" or "bin\win64\libvclx64.dll" to the current exe directory or system environment path. If you don't want to use Delphi binary, you can copy the corresponding LCL library binaries under the "bin\liblcl.dll" directory. Note: the use of LCL is limited in components, events, properties, and methods.
-
Linux: copy "bin\linux64\liblcl.so" executable file directory (also can be copied from the liblcl.so to
/usr/lib/
directory as a Public Library). -
MacOS: copy "bin\MacOS32\liblcl.dylib" executable file directory. apply packaging on MacOS.