Open dreamer2q opened 4 years ago
package main import ( "github.com/lxn/walk" . "github.com/lxn/walk/declarative" "strings" ) func main() { var inTE, outTE *walk.TextEdit MainWindow{ Title: "SCREAMO", MinSize: Size{600, 400}, Size: Size{800, 600}, Layout: VBox{}, Children: []Widget{ HSplitter{ Children: []Widget{ TextEdit{AssignTo: &inTE}, TextEdit{AssignTo: &outTE, ReadOnly: true}, }, }, HSplitter{ Children: []Widget{ PushButton{ Text: "SCREAM", OnClicked: func() { outTE.SetText(strings.ToUpper(inTE.Text())) }, }, PushButton{ Text: "TestButton", OnClicked: func() { walk.MsgBox(nil, "Title", inTE.Text(), walk.MsgBoxOK) }, }, }, }, }, }.Run() }
Sorry to trouble, I am just a new beginner using walk
walk
I followed steps in README and it worked perfectly.
After that, I add a HSplitter with 2 PushButtons from README test.go
HSplitter
PushButton
test.go
But, when I enlarge the window and resize it back, the PushButton in HSplitter didn't behavior as I expected to resize to its previous size.
So, what's the problem or it's just a feature?
Looks like this is working now.
Sorry to trouble, I am just a new beginner using
walk
I followed steps in README and it worked perfectly.
After that, I add a
HSplitter
with 2PushButton
s from READMEtest.go
But, when I enlarge the window and resize it back, the
PushButton
inHSplitter
didn't behavior as I expected to resize to its previous size.So, what's the problem or it's just a feature?