Skip to content

Commit

Permalink
fix rendering issue in main dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
stax76 committed Mar 12, 2019
1 parent 9c84b3d commit f9cea45
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Encoding/VideoEncoder.vb
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,16 @@ Public MustInherit Class VideoEncoder

ret.ShowItemToolTips = False
ret.GripStyle = ToolStripGripStyle.Hidden
ret.BackColor = System.Drawing.SystemColors.Window
ret.BackColor = SystemColors.Window
ret.Dock = DockStyle.Fill
ret.BackColor = System.Drawing.SystemColors.Window
ret.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow
ret.BackColor = SystemColors.Window
ret.LayoutStyle = ToolStripLayoutStyle.VerticalStackWithOverflow
ret.ShowControlBorder = True
ret.Font = New Font("Segoe UI", 9 * s.UIScaleFactor)

For Each i In GetMenu()
Dim b As New ToolStripButton
b.Margin = New Padding(0)
b.Margin = New Padding(2, 2, 0, 0)
b.Text = i.Key
b.Padding = New Padding(4)
Dim happy = i
Expand Down
4 changes: 2 additions & 2 deletions StaxRip.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Global
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|Any CPU.ActiveCfg = Release|x64
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|Any CPU.Build.0 = Release|x64
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|x64.ActiveCfg = Debug|x64
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Debug|x64.Build.0 = Debug|x64
{8DB07BD5-D3DD-49CB-85ED-AB35EAF3C951}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
2 changes: 1 addition & 1 deletion StaxRip.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<WarningLevel>0</WarningLevel>
<NoWarn>41998,41999,42004,42016,42017,42018,42019,42020,42021,42022,42024,42025,42026,42029,42030,42031,42032,42036,42099,42104,42105,42106,42107,42108,42109,42353,42354,42355</NoWarn>
<DebugType>Full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<PlatformTarget>AnyCPU</PlatformTarget>
<WarningsAsErrors>
</WarningsAsErrors>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
Expand Down
6 changes: 1 addition & 5 deletions UI/Menu Types.vb
Original file line number Diff line number Diff line change
Expand Up @@ -662,13 +662,9 @@ Namespace UI
MyBase.New(container)
End Sub

Protected Overrides Sub OnOpening(e As CancelEventArgs)
MyBase.OnOpening(e)
g.SetRenderer(Me)
End Sub

Protected Overrides Sub OnHandleCreated(e As EventArgs)
MyBase.OnHandleCreated(e)
g.SetRenderer(Me)
Font = New Font("Segoe UI", 9 * s.UIScaleFactor)
End Sub

Expand Down

0 comments on commit f9cea45

Please sign in to comment.