Issue #48: added click through option to command line parameters.

This commit is contained in:
Lorenz Cuno Klopfenstein 2013-10-29 12:28:39 +01:00
parent 478adfab19
commit f58ffd1815
2 changed files with 8 additions and 0 deletions

View file

@ -116,6 +116,9 @@ namespace OnTopReplica.StartupOptions {
.Add("clickForwarding", "Enables click forwarding.", s => {
options.EnableClickForwarding = true;
})
.Add("clickThrough", "Enables click through.", s => {
options.EnableClickThrough = true;
})
.Add("chromeOff", "Disables the window's chrome (border).", s => {
options.DisableChrome = true;
})

View file

@ -53,6 +53,8 @@ namespace OnTopReplica.StartupOptions {
public bool EnableClickForwarding { get; set; }
public bool EnableClickThrough { get; set; }
public byte Opacity { get; set; }
public bool DisableChrome { get; set; }
@ -162,6 +164,9 @@ namespace OnTopReplica.StartupOptions {
if (EnableClickForwarding) {
form.ClickForwardingEnabled = true;
}
if (EnableClickThrough) {
form.ClickThroughEnabled = true;
}
form.IsChromeVisible = !DisableChrome;