Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Wizard Dialog again

Wizard Dialog again

Scheduled Pinned Locked Moved Mobile
question
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote on last edited by
    #1

    Well, I got my wizard dialog working to a point, but there is a visual glitch. The area where the tab control displays the tab itself (along the bottom edge of the prop sheet) is blocking some of the controls from being seen. Anybody have a work-around for this? Do I have to overrie some paiting functionality? I can make a screen shot available if I didn't explain this well enough. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends

    J 3 Replies Last reply
    0
    • realJSOPR realJSOP

      Well, I got my wizard dialog working to a point, but there is a visual glitch. The area where the tab control displays the tab itself (along the bottom edge of the prop sheet) is blocking some of the controls from being seen. Anybody have a work-around for this? Do I have to overrie some paiting functionality? I can make a screen shot available if I didn't explain this well enough. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      John Simmons / outlaw programmer wrote: I can make a screen shot available Please, do that. If that is what I'm thinking it is, I believe you will have to resize the embedded property page... Regards, João Paulo

      realJSOPR 1 Reply Last reply
      0
      • J Joao Paulo Figueira

        John Simmons / outlaw programmer wrote: I can make a screen shot available Please, do that. If that is what I'm thinking it is, I believe you will have to resize the embedded property page... Regards, João Paulo

        realJSOPR Offline
        realJSOPR Offline
        realJSOP
        wrote on last edited by
        #3

        http://www.paddedwall.org/wizardshot.jpg[^] ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends

        J 1 Reply Last reply
        0
        • realJSOPR realJSOP

          http://www.paddedwall.org/wizardshot.jpg[^] ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends

          J Offline
          J Offline
          Joao Paulo Figueira
          wrote on last edited by
          #4

          My darkest fears have come true (I was right). But it is almost sorted out. Gotta put the kids in the table for dinner and will be back in an hour with the full solution. Sorry for this... Regards, João Paulo

          1 Reply Last reply
          0
          • realJSOPR realJSOP

            Well, I got my wizard dialog working to a point, but there is a visual glitch. The area where the tab control displays the tab itself (along the bottom edge of the prop sheet) is blocking some of the controls from being seen. Anybody have a work-around for this? Do I have to overrie some paiting functionality? I can make a screen shot available if I didn't explain this well enough. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends

            J Offline
            J Offline
            Joao Paulo Figueira
            wrote on last edited by
            #5

            Well, if you are using my code, my apologies. What happens is that the tab control is hidden but the property sheet does not know about it, so it will happily resize the embedded property page as though there was a tab control. I remeber vaguely, when I first wrote the code, that I thought about this possibility... :doh: So, how do we sort this mess out? You only need to do some changes in the CCeWizard class. These will be reflected on the article but here they are, in case you are in a hurry. CCeWizard.h

            class CCeWizard : public CCePropertySheet
            {
            DECLARE_DYNAMIC(CCeWizard)

            // Construction
            public:
            CCeWizard(UINT nIDCaption, UINT idToolBar = 0, CWnd* pParentWnd = NULL);
            CCeWizard(LPCTSTR pszCaption, UINT idToolBar = 0, CWnd* pParentWnd = NULL);

            // Attributes
            public:

            // Operations
            public:

            // Overrides
            // ClassWizard generated virtual function overrides
            //{{AFX_VIRTUAL(CCeWizard)
            public:
            virtual BOOL OnInitDialog();
            //}}AFX_VIRTUAL

            // Implementation
            public:
            virtual ~CCeWizard();

            // Generated message map functions
            

            protected:
            UINT m_idToolBar;
            SHACTIVATEINFO m_sai;

            void	UpdateControls();
            void	PopulateToolBar();
            void	ResizePage();
            
            //{{AFX\_MSG(CCeWizard)
            afx\_msg void OnBarBack();
            afx\_msg void OnBarNext();
            afx\_msg void OnBarOk();
            afx\_msg void OnBarCancel();
            afx\_msg void OnPaint();
            afx\_msg void OnSize(UINT nType, int cx, int cy);
            //}}AFX\_MSG
            
            afx\_msg void OnActivate(UINT nState, CWnd\* pWndOther, BOOL bMinimized); 
            afx\_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
            
            DECLARE\_MESSAGE\_MAP()
            

            };

            CCeWizard.cpp

            CCeWizard::CCeWizard(UINT nIDCaption, UINT idToolBar, CWnd* pParentWnd)
            : CCePropertySheet(nIDCaption, pParentWnd, 0),
            m_idToolBar (idToolBar)
            {
            memset(&m_sai, 0, sizeof(SHACTIVATEINFO));
            m_sai.cbSize = sizeof(SHACTIVATEINFO);
            }
            ...
            BEGIN_MESSAGE_MAP(CCeWizard, CCePropertySheet)
            ...
            ON_WM_ACTIVATE()
            ON_WM_SETTINGCHANGE()
            END_MESSAGE_MAP()
            ...
            // CCeWizard::UpdateControls
            //
            // Updates the command bar buttons
            //
            void CCeWizard::UpdateControls()
            {
            ...
            ResizePage();
            }
            ...
            // CCeWizard::ResizePage
            //
            // Resize the active property page
            //
            void CCeWizard::ResizePage()
            {
            CPropertyPage* pPage = GetActivePage();

            if(pPage)
            {
            	CRect	rc;
            
            	pPage->GetWindowRect(&rc);
            	ScreenToClient(&rc);
            	rc.bottom += 22;			// MAGIC NUMBER!!!
            	pPage->MoveWindow(&rc);
            }
            

            }
            ...
            // CCeWizard::OnSize
            //
            // Special resizin

            1 Reply Last reply
            0
            • realJSOPR realJSOP

              Well, I got my wizard dialog working to a point, but there is a visual glitch. The area where the tab control displays the tab itself (along the bottom edge of the prop sheet) is blocking some of the controls from being seen. Anybody have a work-around for this? Do I have to overrie some paiting functionality? I can make a screen shot available if I didn't explain this well enough. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends

              J Offline
              J Offline
              Joao Paulo Figueira
              wrote on last edited by
              #6

              John, The article is updated. As you can see from the image, your button problem is solved (I hope you don't mind my using your name on the button - if you do I'll remove it). A Wizard-like property sheet for the Pocket PC[^] Thank you for using the code and spotting this problem! ;) Regards, João Paulo

              realJSOPR 1 Reply Last reply
              0
              • J Joao Paulo Figueira

                John, The article is updated. As you can see from the image, your button problem is solved (I hope you don't mind my using your name on the button - if you do I'll remove it). A Wizard-like property sheet for the Pocket PC[^] Thank you for using the code and spotting this problem! ;) Regards, João Paulo

                realJSOPR Offline
                realJSOPR Offline
                realJSOP
                wrote on last edited by
                #7

                You are GOD! If I can manage to find a sacrificial virgin, I'll send her to you yo do with as you please. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends

                J 1 Reply Last reply
                0
                • realJSOPR realJSOP

                  You are GOD! If I can manage to find a sacrificial virgin, I'll send her to you yo do with as you please. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends

                  J Offline
                  J Offline
                  Joao Paulo Figueira
                  wrote on last edited by
                  #8

                  :-O

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups