Compare commits

..

No commits in common. "guimaster" and "v0.22.31" have entirely different histories.

1 changed files with 4 additions and 39 deletions

View File

@ -3,47 +3,15 @@
package gadgets
// This model works for 99.9% of all windows
// This is the Default Standard Window Model
import (
"go.wit.com/log"
"go.wit.com/gui"
)
// This model works for 99.9% of all windows
// This is the Default Standard Window Model
//
/////////////////////// Win /////////////////////////////////
// / / //
// / Top / ///////////////////////////////////////
// / / / //
// / / / Group //
// / / / //////////////////////////////////
// / / / // //
// / / / // //
// ////////////////////////////////////////////////////
// / / // // // // //
// Shelf / / // // // // //
// / Middle / // // // // .... //
// / / // // // // //
// / / // // // // //
// ////////////////////////////////////////////////////
// / / //
// / Bottom //////////////////////////////////////////
// / / //
// / //////////////////////////////////////////
// / / //
// / / | //
// / / v //
// / / //
// ////////////////////////////////////////////////////
// / //
// / //
// ////////////////////////////////////////////////////
// / //
// / | //
// / v //
// / //
/////////////////////////////////////////////////////////////
type GenericWindow struct {
// Win *BasicWindow // the window widget itself
Win *gui.Node // the window widget itself
@ -143,12 +111,9 @@ func NewGenericWindow(title string, grouptxt string) *GenericWindow {
// gw.Win.Make()
gw.Win.Custom = func() {
log.Log(WARN, "GenericWindow.Custom()")
log.Log(WARN, "Found Window close. setting hidden=true")
// sets the hidden flag to false so Toggle() works
gw.Win.Hide()
if gw.Custom != nil {
gw.Custom()
}
}
gw.Shelf = gw.Win.NewHorizontalBox("Shelf")
// gw.Shelf.Vertical().SetProgName("ShelfBox")