February 2019
Intermediate to advanced
450 pages
11h 59m
English
Unfortunately there is currently no API support for menu or toolbar features in andlabs UI. Instead, we will simulate a toolbar by using a horizontal box, buttons, and a separator, which should provide the desired effect. As the separator can be very thin, we are padding it with an extra space on either side:
toolbar := ui.NewHorizontalBox()toolbar.Append(ui.NewButton("New"), false)toolbar.Append(ui.NewButton("Reply"), false)toolbar.Append(ui.NewButton("Reply All"), false)toolbar.Append(ui.NewLabel(" "), false)toolbar.Append(ui.NewVerticalSeparator(), false)toolbar.Append(ui.NewLabel(" "), false)toolbar.Append(ui.NewButton("Delete"), false)toolbar.Append(ui.NewLabel(" "), false)toolbar.Append(ui.NewVerticalSeparator(),
Read now
Unlock full access