Disabling property sheets
Ron Birk -- rbirk@ctp.com
Sunday, February 04, 1996
-- [ From: Ron Birk * EMC.Ver #2.5.02 ] --
(I am using MSVC 1.52c)
Is it possible, without rewriting (fixing) the MFC classes, to have some
pages in a CPropterySheet dialog to be disabled? The only solution I have at
the moment is to patch the MFC code or simply not adding the specific page.
I also want to be as forward compatible as possible to 32 bit MFC.
Ron
--
/\/\ Ron Birk Email: rbirk@ctp.com
/ /_ \ Horizontal Solutions Tel: +46 8 744 6119
\ / / Cambridge Technology Partners Fax: +46 8 744 9933
\/\/ Stockholm, Sweden Voicemail: +1 617 374 2081
LeRoy Baxter -- lbaxter@cinfo.com
Sunday, February 04, 1996
I did something like that in the OnSetActive() by checking a flag and returning
FALSE if the page was not to be active.
On Sunday, February 04, 1996 6:56 AM, Ron Birk[SMTP:rbirk@ctp.com] wrote:
>-- [ From: Ron Birk * EMC.Ver #2.5.02 ] --
>
>(I am using MSVC 1.52c)
>
>Is it possible, without rewriting (fixing) the MFC classes, to have some
>pages in a CPropterySheet dialog to be disabled? The only solution I have at
>the moment is to patch the MFC code or simply not adding the specific page.
>I also want to be as forward compatible as possible to 32 bit MFC.
>
>Ron
Ron Birk -- rbirk@ctp.com
Monday, February 05, 1996
[Mini-digest: 2 responses]
-- [ From: Ron Birk * EMC.Ver #2.5.02 ] --
> I did something like that in the OnSetActive() by checking a flag and
returning
> FALSE if the page was not to be active.
>
> >(I am using MSVC 1.52c)
> >
> >Is it possible, without rewriting (fixing) the MFC classes, to have some
> >pages in a CPropterySheet dialog to be disabled? The only solution I have
at
> >the moment is to patch the MFC code or simply not adding the specific
page.
> >I also want to be as forward compatible as possible to 32 bit MFC.
What I wanted is disabled tabs, i.e. gray text. Or is this not a standard?
Ron
--
/\/\ Ron Birk Email: rbirk@ctp.com
/ /_ \ Horizontal Solutions Tel: +46 8 744 6119
\ / / Cambridge Technology Partners Fax: +46 8 744 9933
\/\/ Stockholm, Sweden Voicemail: +1 617 374 2081
-----From: LeRoy Baxter
Sorry, I did this in a Wizard - not in a Tabbed Dialog. I don't know how
you would dynamically disable a page - and, from a User Interface standpoint,
I don't think it would be a good idea. I think your best approach would be to
either not add the page on creation of the dialog, or to disable the contents
of the page (perhaps show a message stating why the page did not apply?).
Mike Blaszczak -- mikeblas@msn.com
Monday, February 12, 1996
From: owner-mfc-l@netcom.com on behalf of Ron Birk
Sent: Monday, February 05, 1996 08:30
> What I wanted is disabled tabs, i.e. gray text. Or is this not a standard?
You have to do the drawing by yourself if this is what you want.
.B ekiM
TCHAR sz[] = _T("");
| Вернуться в корень Архива
|