Skip to content

Commit

Permalink
Add msix configuration and minor cleanup (#46)
Browse files Browse the repository at this point in the history
* ux tweaks

* store and polish
  • Loading branch information
johnshew authored Dec 21, 2020
1 parent da83975 commit cd9451a
Show file tree
Hide file tree
Showing 5 changed files with 255 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Cargo.lock

**/*samples*.log
**/*timeouts*.log
msix/Contrac-x64.msix
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@ Since Contrac automatically writes to the log files every 5 minutes it is good t

This was an interesting first project to learn Rust. Thanks to [Gabriel Dube](https://github.com/gabdube) for creating native-windows-gui, a nice toolkit for small native Win32 apps.

The graph rendering in Contrac is a hack. Since there are currently no easy-to-use drawing capabilties with native-windows-gui, Contrac uses a collection of small image controls to represent the bars of the graph.

On Windows, by default, Rust starts a console. If you want a Windows app put the following at the top of main.rs.

``` #![windows_subsystem = "windows"] ```

Here a few things that I thought about PRing into native-windows-gui:
* Minimize and restore windows
* Maybe enable WS_CLIPSIBLINGS in flags for controls and enable z-ordering
* Provide more access to the nwg::win32 helper functions

## Recommended Visual Studio Extensions

* https://marketplace.visualstudio.com/items?itemName=rust-lang.rust
Expand Down
Loading

0 comments on commit cd9451a

Please sign in to comment.