Clarius Forums

learn from us.
It is currently Fri Sep 10, 2010 7:47 am
View unanswered posts | View active topics


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Custom Wizard Form
PostPosted: Thu Apr 26, 2007 1:37 am 
Offline

Joined: Tue Sep 26, 2006 3:46 am
Posts: 16
Is there a way for me to customize the wizard form by changing the top banner and left banner with my own images?

TIA.


 
 Profile Email  
 
 Post subject: Re: Custom Wizard Form
PostPosted: Fri Apr 27, 2007 6:42 am 
Offline

Joined: Mon Jul 03, 2006 8:28 am
Posts: 49
Hi,
Yes, it's possible. An example of this is how SFT changes the top of the banner of its custom pages. What you have to do is to set the Logo property of the Microsoft.WizardFramework.WizardPage class with your own bitmap.

HTH


 
 Profile Email  
 
 Post subject: Re: Custom Wizard Form
PostPosted: Mon Apr 30, 2007 12:27 am 
Offline

Joined: Tue Sep 26, 2006 3:46 am
Posts: 16
Thanks for the reply.

That is what I did before but whenever I tried to change the Logo property to something else it throws an "Object reference..." error.

Do I really need to change just the logo property to change the entire top and left banners? Instead of having white banners I would love to have my custom banner on top and on the left side of the wizard. Can this be achieved? Do you have a sample guidance package that I could refer to?

TIA.


 
 Profile Email  
 
 Post subject: Re: Custom Wizard Form
PostPosted: Mon Apr 30, 2007 10:24 am 
Offline

Joined: Mon Jul 03, 2006 8:28 am
Posts: 49
You should call the Logo property after initializing the wizard page, for example:

       public CustomWizardPageBase(WizardForm parent) : base(parent)
        {
            InitializeComponent();
            ReplaceHeaderPanel();
        }

        private void ReplaceHeaderPanel()
        {
            Control headerPanelControl = Wizard.Controls["_headerBannerPanel"];

            if (headerPanelControl != null)
            {
                PictureBox pictureBox = headerPanelControl.Controls["_pageLogo"] as PictureBox;
              
                Label headlineLabel = headerPanelControl.Controls["_headlineLabel"] as Label;

                this.Logo = Resources.SftWizardHeader;
            }
        }

I'm also including how you can  search the picture box and the headline label of the page by its names.

HTH,


 
 Profile Email  
 
 Post subject: Re: Custom Wizard Form
PostPosted: Tue May 01, 2007 8:53 pm 
Offline

Joined: Tue Sep 26, 2006 3:46 am
Posts: 16
It worked :D

Thanks.


 
 Profile Email  
 
 Post subject: Re: Custom Wizard Form
PostPosted: Wed May 02, 2007 6:27 am 
Offline

Joined: Mon Jul 03, 2006 8:28 am
Posts: 49
Glad to hear that!


 
 Profile Email  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2002, 2006 phpBB Group
[ Time : 0.166s | 13 Queries | GZIP : On ]