February 2019
Intermediate to advanced
450 pages
11h 59m
English
To start our secondary window, the compose dialog, we could use the custom dialog feature in Fyne (created with dialog.ShowCustom()). However, all dialog windows in Fyne are of a fixed size, and we would like the compose window to be flexible. Instead, we will create a new window, as in our main() function, using app.NewWindow(). To do this, we will need to pass the app instance into a new ShowCompose() function (as windows are created from the app object):
func ShowCompose(app fyne.App) { compose := app.NewWindow("GoMail Compose") ...}
Next, we create the widgets for the compose window. We will use widget.NewEntry() for each of the text entry components. For the multiple-line message widget, we could set Entry.MultiLine to ...
Read now
Unlock full access