Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8233135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:02:05+00:00 2026-06-07T18:02:05+00:00

Wizard::Wizard( wxWindow* parent, const wxString& archive ) : wxWizard(parent, wxID_ANY, _(Wizard)) { this->SetSizeHints( wxSize(

  • 0
Wizard::Wizard( wxWindow* parent, const wxString& archive )
: wxWizard(parent, wxID_ANY, _("Wizard"))
{    
    this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );

    wxWizardPageSimple* rcModWizPageSelect = new wxWizardPageSimple( this );
    m_pages.Add( rcModWizPageSelect );

    wxBoxSizer* bSizer1;
    bSizer1 = new wxBoxSizer( wxVERTICAL );

    m_bitmap2 = new wxStaticBitmap( rcModWizPageSelect, wxID_ANY, wxBitmap( wxT("data/img.jpg"), wxBITMAP_TYPE_ANY ), wxDefaultPosition, wxDefaultSize, 0 );
    m_bitmap2->SetMinSize( wxSize( 586,192 ) );

    bSizer1->Add( m_bitmap2, 0, wxALL|wxEXPAND|wxFIXED_MINSIZE, 5 );

    wxStaticBoxSizer* sbSizer1;
    sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( rcModWizPageSelect, wxID_ANY, _("Select Archive") ), wxVERTICAL );

    rcModArchivePicker = new wxFilePickerCtrl( rcModWizPageSelect, wxID_ANY, wxEmptyString, _("Select a file"), wxT("*.zip"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE|wxFLP_FILE_MUST_EXIST|wxFLP_OPEN );
    sbSizer1->Add( rcModArchivePicker, 0, wxALL|wxEXPAND, 5 );

    bSizer1->Add( sbSizer1, 1, wxALL|wxEXPAND, 5 );

    rcModWizPageSelect->SetSizer( bSizer1 );
    rcModWizPageSelect->Layout();
    bSizer1->Fit( rcModWizPageSelect );
    wxWizardPageSimple* rcModWizPageProgress = new wxWizardPageSimple( this );
    m_pages.Add( rcModWizPageProgress );

    wxBoxSizer* bSizer2;
    bSizer2 = new wxBoxSizer( wxVERTICAL );

    m_bitmap1 = new wxStaticBitmap( rcModWizPageProgress, wxID_ANY, wxBitmap( wxT("data/img.jpg"), wxBITMAP_TYPE_ANY ), wxDefaultPosition, wxDefaultSize, 0 );
    m_bitmap1->SetMinSize( wxSize( 586,192 ) );

    bSizer2->Add( m_bitmap1, 0, wxALL|wxEXPAND|wxFIXED_MINSIZE, 5 );

    wxStaticBoxSizer* sbSizer2;
    sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( rcModWizPageProgress, wxID_ANY, _("Please Wait") ), wxVERTICAL );

    rcModInstallProgress = new wxGauge( rcModWizPageProgress, wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL|wxGA_SMOOTH );
    rcModInstallProgress->SetValue( 0 ); 
    sbSizer2->Add( rcModInstallProgress, 0, wxALL|wxEXPAND, 5 );

    bSizer2->Add( sbSizer2, 1, wxALL|wxEXPAND, 5 );

    rcModWizPageProgress->SetSizer( bSizer2 );
    rcModWizPageProgress->Layout();
    bSizer2->Fit( rcModWizPageProgress );

    this->Centre( wxBOTH );

    for ( unsigned int i = 1; i < m_pages.GetCount(); i++ )
    {
        m_pages.Item( i )->SetPrev( m_pages.Item( i - 1 ) );
        m_pages.Item( i - 1 )->SetNext( m_pages.Item( i ) );
    }
}

I try to have a nice Wizard Dialog, but the minimum size gets ignored and the overall frame is much smaller than my image is. The image has a size of 586×192.

The preview looks nice in wxFormBuilder but the generated Code looks totally different.
Here 2 images:
https://i.stack.imgur.com/tbOzP.png
https://i.stack.imgur.com/B3vVf.png

Can anyone help me with this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:02:07+00:00Added an answer on June 7, 2026 at 6:02 pm

    I ran into the same issue and was able to work around it by calling SetItemMinSize() on the sizer as follows:

    sizer->Add(control, 0, 0, 0);
    sizer->SetItemMinSize(control, 150, -1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This wizard gives me a tableview to work with when I build and run.
i have wizard control with multiple steps. something like this <asp:wizard> <wizardsteps> </wizardsteps> <wizardsteps>
Unless Mr.Wizard is on vacation, it is pretty difficult to beat this phenomenon which
i implement a wizard in c#, in this manner: private static void MyInitialization() {
I have a wizard in my asp.net MVC application which is built upon this
I made form by wizard, but when I run this, first I have in
I have a wizard setup like so: <asp:Wizard ID=Wizard1 runat=server DisplaySideBar=false onnextbuttonclick=OnNextButtonClick> <WizardSteps> <asp:WizardStep
I have created a wizard using the GUI and so my pages are all
I installed the setup wizard for subversion Setup-Subversion-1.7.5 But how do I run Subversion?
Using the Fusion LayersTable Wizard and a fusion table of my own, I get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.