Various improvements to the content properties dialogue (including #791).
[dcpomatic.git] / src / wx / table_dialog.cc
index 3c5d9d3d53e8315041f0da069f95f46e9608f543..3f8d10fe14aee08e0459e9c5d30e01f71b63840b 100644 (file)
@@ -50,9 +50,22 @@ TableDialog::layout ()
 }
 
 void
+#ifdef DCPOMATIC_OSX
 TableDialog::add (wxString text, bool label)
+#else
+TableDialog::add (wxString text, bool)
+#endif
 {
-       add_label_to_sizer (_table, this, text, label);
+       int flags = wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT;
+#ifdef __WXOSX__
+       if (label) {
+               flags |= wxALIGN_RIGHT;
+               t += wxT (":");
+       }
+#endif
+       wxStaticText* m = new wxStaticText (this, wxID_ANY, wxT (""));
+       m->SetLabelMarkup (text);
+       _table->Add (m, 0, flags, 6);
 }
 
 void