Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F136955
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/test/test.go b/test/test.go
index a2ca73f..6b5a59d 100644
--- a/test/test.go
+++ b/test/test.go
@@ -1,40 +1,51 @@
package main
import (
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
"strings"
)
func main() {
var inTE, outTE *walk.TextEdit
MainWindow{
Title: "Login",
MinSize: Size{350, 200},
Layout: VBox{},
Children: []Widget{
HSplitter{
Children: []Widget{
+ Label{ Text: "Username"},
+ //TextEdit{AssignTo: &inTE},
+ TextEdit{AssignTo: &outTE, ReadOnly: true},
+ //TextEdit{AssignTo: &inTE, ReadOnly: false},
+ //TextEdit{AssignTo: &inTE},
+
+ },
+ },
+ HSplitter{
+ Children: []Widget{
+ Label{ Text: "Password"},
//TextEdit{AssignTo: &inTE},
- //TextEdit{AssignTo: &outTE, ReadOnly: true},
+ TextEdit{AssignTo: &outTE, ReadOnly: true},
//TextEdit{AssignTo: &inTE, ReadOnly: false},
//TextEdit{AssignTo: &inTE},
- Label{ Text: "Username"},
+
},
},
PushButton{
Text: "Cancel",
OnClicked: func() {
outTE.SetText(strings.ToUpper(inTE.Text()))
},
},
PushButton{
Text: "Login",
OnClicked: func() {
outTE.SetText(strings.ToUpper(inTE.Text()))
},
},
},
}.Run()
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Apr 4, 5:49 PM (3 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15388
Default Alt Text
(1 KB)
Attached To
rST sshtunnel
Event Timeline
Log In to Comment