MCPcopy Create free account
hub / github.com/cogentcore/core / RunWindowDialog

Method RunWindowDialog

core/dialog.go:66–68  ·  view source on GitHub ↗

RunWindowDialog returns and runs a new [DialogStage] that is placed in a new system window on multi-window platforms, in the context of the given widget. See [Body.NewWindowDialog] to make a dialog window without running it.

(ctx Widget)

Source from the content-addressed store, hash-verified

64// a new system window on multi-window platforms, in the context of the given widget.
65// See [Body.NewWindowDialog] to make a dialog window without running it.
66func (bd *Body) RunWindowDialog(ctx Widget) *Stage {
67 return bd.NewWindowDialog(ctx).Run()
68}
69
70// NewWindowDialog returns a new [DialogStage] that is placed in
71// a new system window on multi-window platforms, in the context of the given widget.

Callers 11

blameDialogFunction · 0.80
vcsLogDialogFunction · 0.80
fileAtRevisionDialogFunction · 0.80
makeColumnsMethod · 0.80
MakeToolbarMethod · 0.80
openValueDialogFunction · 0.80
showReturnsDialogMethod · 0.80
editNodeMethod · 0.80
MakeToolbarMethod · 0.80
dialogsFunction · 0.80
TextDialogFunction · 0.80

Calls 2

NewWindowDialogMethod · 0.95
RunMethod · 0.45

Tested by

no test coverage detected