1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-10 00:15:31 +01:00

AUP3: Make suggested directory preferences changes

In addition, I've extracted the wxTextCtrl wrapper from the
TimerRecordDialog intto widgets/wxTextCtrlWrapper.h and made
it the default for ShuttleGui::AddTextBox(). This way readonly
text controls are always included in the tab order.
This commit is contained in:
Leland Lucius
2020-07-29 00:08:48 -05:00
parent d4627f0daf
commit 85b4a5376f
7 changed files with 117 additions and 95 deletions

View File

@@ -115,6 +115,7 @@ for registering for changes.
#include <wx/bmpbuttn.h>
#include "../include/audacity/ComponentInterface.h"
#include "widgets/wxPanelWrapper.h"
#include "widgets/wxTextCtrlWrapper.h"
#include "AllThemeResources.h"
#if wxUSE_ACCESSIBILITY
@@ -630,7 +631,7 @@ wxTextCtrl * ShuttleGuiBase::AddTextBox(
long flags = wxTE_LEFT;
#endif
mpWind = pTextCtrl = safenew wxTextCtrl(GetParent(), miId, Value,
mpWind = pTextCtrl = safenew wxTextCtrlWrapper(GetParent(), miId, Value,
wxDefaultPosition, Size, GetStyle( flags ));
#if wxUSE_ACCESSIBILITY
// so that name can be set on a standard control