Tweaks in eeschema for hidpi

This commit is contained in:
Marek Roszko 2024-02-05 01:03:52 -05:00
parent 002fb80c2a
commit c39e7b2225
4 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,7 @@ PANEL_TEXT_VARIABLES::PANEL_TEXT_VARIABLES( wxWindow* aParent, PROJECT* aProject
m_btnDeleteTextVar->SetBitmap( KiBitmapBundle( BITMAPS::small_trash ) );
m_TextVars->ClearRows();
m_TextVars->SetUseNativeColLabels();
// prohibit these characters in the alias names: []{}()%~<>"='`;:.,&?/\|$
m_nameValidator.SetStyle( wxFILTER_EXCLUDE_CHAR_LIST );

View File

@ -35,6 +35,9 @@ PANEL_BOM_PRESETS::PANEL_BOM_PRESETS( wxWindow* aWindow, SCHEMATIC_SETTINGS& aSe
{
m_btnDeleteBomPreset->SetBitmap( KiBitmapBundle( BITMAPS::small_trash ) );
m_btnDeleteBomFmtPreset->SetBitmap( KiBitmapBundle( BITMAPS::small_trash ) );
m_bomPresetsGrid->SetUseNativeColLabels();
m_bomFmtPresetsGrid->SetUseNativeColLabels();
}

View File

@ -59,6 +59,9 @@ PANEL_SETUP_BUSES::PANEL_SETUP_BUSES( wxWindow* aWindow, SCH_EDIT_FRAME* aFrame
OnAddMember( aEvent );
} ) );
m_aliasesGrid->SetUseNativeColLabels();
m_membersGrid->SetUseNativeColLabels();
// wxFormBuilder doesn't include this event...
m_aliasesGrid->Connect( wxEVT_GRID_CELL_CHANGING,
wxGridEventHandler( PANEL_SETUP_BUSES::OnAliasesGridCellChanging ),

View File

@ -59,6 +59,8 @@ PANEL_TEMPLATE_FIELDNAMES::PANEL_TEMPLATE_FIELDNAMES( wxWindow* aWindow,
m_checkboxColWidth = m_grid->GetColSize( 1 );
m_grid->SetUseNativeColLabels();
m_grid->PushEventHandler( new GRID_TRICKS( m_grid, [this]( wxCommandEvent& aEvent )
{
OnAddButtonClick( aEvent );