February 2019
Intermediate to advanced
450 pages
11h 59m
English
Using the native API, (Go bindings of the native winAPI) is possible, but in most cases this is more verbose, as you are working directly with a low-level API. Coding in this way can't make use of standard metrics or configurations that are handled by the higher-level declarative API, designed to better suit a modern programming language. To illustrate the difference, here is what the preceding example would look like if we only used the native API:
package mainimport ( "log" "github.com/lxn/walk")var marginSize = 9func buildWindow() (*walk.MainWindow, error) { win, err := walk.NewMainWindowWithName("Hello") if err != nil { return nil, err } layout := walk.NewVBoxLayout() layout.SetMargins(walk.Margins{marginSize, ...Read now
Unlock full access