Standard dialogs becoming useable on WinCE.
Make standard button sizer horizontal on WinCE since vertically it looks atrocious (app will need to reduce number of buttons if they don't fit) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -52,7 +52,9 @@
|
||||
class WXDLLEXPORT wxFontPreviewer : public wxWindow
|
||||
{
|
||||
public:
|
||||
wxFontPreviewer(wxWindow *parent) : wxWindow(parent, wxID_ANY) {}
|
||||
wxFontPreviewer(wxWindow *parent, const wxSize& sz = wxDefaultSize) : wxWindow(parent, wxID_ANY, wxDefaultPosition, sz)
|
||||
{
|
||||
}
|
||||
|
||||
private:
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
@@ -305,6 +307,10 @@ void wxGenericFontDialog::CreateWidgets()
|
||||
{
|
||||
wxStaticText* itemStaticText15 = new wxStaticText( this, wxID_STATIC, _("C&olour:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemBoxSizer14->Add(itemStaticText15, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);
|
||||
|
||||
wxSize colourSize = wxDefaultSize;
|
||||
if (is_pda)
|
||||
colourSize.x = 100;
|
||||
|
||||
wxChoice* itemChoice16 = new wxChoice( this, wxID_FONT_COLOUR, wxDefaultPosition, wxDefaultSize, NUM_COLS, wxColourDialogNames, 0 );
|
||||
itemChoice16->SetHelpText(_("The font colour."));
|
||||
@@ -336,11 +342,12 @@ void wxGenericFontDialog::CreateWidgets()
|
||||
itemBoxSizer20->Add(itemCheckBox21, 0, wxALIGN_LEFT|wxALL, 5);
|
||||
}
|
||||
|
||||
itemBoxSizer3->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||
if (!is_pda)
|
||||
itemBoxSizer3->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||
|
||||
wxStaticText* itemStaticText23 = new wxStaticText( this, wxID_STATIC, _("Preview:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemBoxSizer3->Add(itemStaticText23, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);
|
||||
|
||||
|
||||
wxFontPreviewer* itemWindow24 = new wxFontPreviewer( this );
|
||||
m_previewer = itemWindow24;
|
||||
itemWindow24->SetHelpText(_("Shows the font preview."));
|
||||
@@ -405,7 +412,7 @@ void wxGenericFontDialog::CreateWidgets()
|
||||
|
||||
pointSizeChoice->SetSelection(dialogFont.GetPointSize()-1);
|
||||
|
||||
GetSizer()->SetItemMinSize(m_previewer, 430, 100);
|
||||
GetSizer()->SetItemMinSize(m_previewer, is_pda ? 100 : 430, is_pda ? 40 : 100);
|
||||
GetSizer()->SetSizeHints(this);
|
||||
GetSizer()->Fit(this);
|
||||
|
||||
|
Reference in New Issue
Block a user