diff options
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -4,8 +4,6 @@ import ( "git.wit.org/wit/gui/toolkit" ) -//import toolkit "git.wit.org/wit/gui/toolkit/andlabs" - // This routine creates a blank window with a Title and size (W x H) // // This routine can not have any arguements due to the nature of how @@ -48,3 +46,24 @@ func NewWindow() *Node { return newNode } + +// This routine creates a blank window with a Title +// +func (n *Node) NewWindow2(title string) *Node { + var newNode *Node + + // Windows are created off of the master node of the Binary Tree + newNode = n.New(Config.Title, toolkit.Window, StandardExit) + + log(logInfo, "NewWindow()", Config.Title) + + var a toolkit.Action + a.ActionType = toolkit.Add + a.Width = Config.Width + a.Height = Config.Height + a.Name = Config.Title + a.Text = Config.Title + newaction(&a, newNode, n) + + return newNode +} |
