Skip to content

Commit

Permalink
Update README.mdown
Browse files Browse the repository at this point in the history
Based on lxn#63 I this would modification would help people get started faster especially developer who are new to go.
  • Loading branch information
olekukonko committed Jul 26, 2013
1 parent 57ba0d2 commit a4a84c6
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Setup
Make sure you have a working Go installation.
See [Getting Started](http://golang.org/doc/install.html)

##### Note
`Go 1.0.x` doesn't work with walk anymore, Make sure you use `Go 1.1.x`

##### To Install
Now run `go get github.com/lxn/walk`

Using Walk
Expand All @@ -19,6 +23,8 @@ Using Walk
The preferred way to create GUIs with Walk is to use its declarative sub package,
as illustrated in this small example:

##### `test.go`

package main

import (
Expand Down Expand Up @@ -51,6 +57,33 @@ as illustrated in this small example:
}.Run()
}

##### Build app

go build test.go

##### Create Manifest `test.exe.manifest`

```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="*" name="SomeFunkyNameHere" type="win32"/>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
</dependentAssembly>
</dependency>
</assembly>
```

##### Run app

test.exe

##### Sample Output (Windows 7)

![alt tag](http://i.imgur.com/lUrgE2Q.png)

##### More Examples
There are some [examples](examples) that should get you started.

Application Manifest Files
Expand All @@ -64,4 +97,4 @@ You can copy one of the application manifest files that come with the examples.
IMPORTANT: Do not launch your executable before the manifest file is in place.
If you do anyway, the program will not run properly. And worse, Windows will not
recognize a manifest file, you later drop next to the executable. To fix this,
rebuild your executable and only launch it with a manifest file in place.
rebuild your executable and only launch it with a manifest file in place.

0 comments on commit a4a84c6

Please sign in to comment.