MCPcopy Create free account
hub / github.com/audacity/audacity / GetCollapsiblePaneBorder

Function GetCollapsiblePaneBorder

libraries/lib-wx-init/ErrorReportDialog.cpp:45–56  ·  view source on GitHub ↗

wxWidgets set an inaccessible border for the wxCollapsiblePane which makes layout of the dialog even more difficult. This code was copied from the wxWidgets 3.1.3 collpaneg.cpp

Source from the content-addressed store, hash-verified

43// which makes layout of the dialog even more difficult.
44// This code was copied from the wxWidgets 3.1.3 collpaneg.cpp
45int GetCollapsiblePaneBorder(wxWindow* root)
46{
47#if defined(__WXMAC__)
48 (void)root;
49 return 6;
50#elif defined(__WXMSW__)
51 return root->ConvertDialogToPixels(wxSize(2, 0)).x;
52#else
53 (void)root;
54 return 5;
55#endif
56}
57}
58
59constexpr int MaxUserCommentLength = 2000;

Callers 1

ErrorReportDialogMethod · 0.85

Calls 1

wxSizeClass · 0.50

Tested by

no test coverage detected