-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Some work on control size issue * wOrk on control size issue * work on some control size issue * Update Splasch screen * Update Splasch screen
- Loading branch information
Showing
17 changed files
with
814 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System.Drawing; | ||
using System.Windows.Forms; | ||
using DevExpress.Utils.Layout; | ||
using DevExpress.XtraEditors; | ||
using OSPSuite.UI; | ||
using OSPSuite.Utility.Extensions; | ||
|
||
namespace PKSim.UI.Extensions | ||
{ | ||
public static class TablePanelExtensions | ||
{ | ||
public static TablePanel WithAbsoluteWidth(this TablePanel tablePanel, int columnIndex0, int width) | ||
{ | ||
tablePanel.Columns[columnIndex0].Style = TablePanelEntityStyle.Absolute; | ||
tablePanel.Columns[columnIndex0].Width = width; | ||
return tablePanel; | ||
} | ||
|
||
public static TablePanel WithLongButtonWidth(this TablePanel tablePanel, params int[] columnIndexes) | ||
{ | ||
//TODO define constant | ||
columnIndexes.Each(columnIndex => WithAbsoluteWidth(tablePanel, columnIndex, 150)); | ||
return tablePanel; | ||
} | ||
|
||
public static TablePanel WithButtonWidth(this TablePanel tablePanel, params int[] columnIndexes) | ||
{ | ||
columnIndexes.Each(columnIndex => WithAbsoluteWidth(tablePanel, columnIndex, 30)); | ||
return tablePanel; | ||
} | ||
|
||
public static void AdjustButtonWithImageOnly(this SimpleButton button) | ||
{ | ||
button.Size = new Size(UIConstants.Size.ScaleForScreenDPI(24), UIConstants.Size.ScaleForScreenDPI(22)); | ||
} | ||
public static void AdjustLongButtonWidth(this SimpleButton button) | ||
{ | ||
button.Size = new Size(UIConstants.Size.LARGE_BUTTON_WIDTH, button.Height); | ||
} | ||
} | ||
} |
162 changes: 75 additions & 87 deletions
162
src/PKSim.UI/Views/BuildingBlockSelectionView.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.