CPropertySheet as a View
Mats Mеnhav -- manhav@connectum.skurup.se
Friday, February 23, 1996
-- [ From: Mats Manhav * EMC.Ver #2.5.02 ] --
Environment:
MSVC 4.0 Windows NT 3.51 w NewShell.
I have an application where I use Property Sheets.
These Sheets are opened from a CFormView.
Now things have changed since I started up the project so now I am not all
pleased with the CProperty Sheets.
Now what I really would like is that the Property sheets to acts like a
CFormView, too.
I.e.
I want it's title to end up in the Windows menu of current views.
I want to be able to minimize it.
I want to be able to open more than one from the same CFormView.
I want them to go behind the CFormView.
I want them to be within the MDI desktop.
Some of the problems up here can be solved by making the PropertySheet
modeless, but not all.
Does anyone have an idea how to achive this ?
Hopefully without too much work since I have all the pages and their classes
designed already.
Mats
--
==========================================================================
Mats Mеnhav (Mats Manhav for 7-bit people)
email:manhav@connectum.skurup.se WWW: http://connectum.skurup.se/~manhav
FAX: (int) 46 (0) 414 243 05 Phone: (int) 46 (0) 414 243 05
==========================================================================
Poul A. Costinsky -- PoulACost@msn.com
Sunday, February 25, 1996
You'll better put a CTabCtrl into CFormView.
Hope this helps.
Regards,
Poul A. Costinsky(PoulACost@msn.com).
("`-''-/").___..--''"`-._
(`6_ 6 ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' ,'
(il).-'' (li).' ((!.-
----------
From: owner-mfc-l@netcom.com on behalf of Mats Manhav
Sent: Saturday, February 24, 1996 12:46 AM
To: MFCList
Subject: CPropertySheet as a View
-- [ From: Mats Manhav * EMC.Ver #2.5.02 ] --
Environment:
MSVC 4.0 Windows NT 3.51 w NewShell.
I have an application where I use Property Sheets.
These Sheets are opened from a CFormView.
Now things have changed since I started up the project so now I am not all
pleased with the CProperty Sheets.
Now what I really would like is that the Property sheets to acts like a
CFormView, too.
I.e.
I want it's title to end up in the Windows menu of current views.
I want to be able to minimize it.
I want to be able to open more than one from the same CFormView.
I want them to go behind the CFormView.
I want them to be within the MDI desktop.
Some of the problems up here can be solved by making the PropertySheet
modeless, but not all.
Does anyone have an idea how to achive this ?
Hopefully without too much work since I have all the pages and their classes
designed already.
Mats
--
==========================================================================
Mats Menhav (Mats Manhav for 7-bit people)
email:manhav@connectum.skurup.se WWW: http://connectum.skurup.se/~manhav
FAX: (int) 46 (0) 414 243 05 Phone: (int) 46 (0) 414 243 05
==========================================================================
David W. Gillett -- DGILLETT@expertedge.com
Monday, February 26, 1996
> I have an application where I use Property Sheets. These Sheets are
> opened from a CFormView.
>
> Now things have changed since I started up the project so now I am
> not all pleased with the CProperty Sheets. Now what I really would
> like is that the Property sheets to acts like a CFormView, too.
If I've read this right, I think what you want to do is create a
CFormView object which contains a CTabCtrl, and add your
CPropertyPage objects to that CTabCtrl instead of to a
CPropertySheet.
The CFormView will provide all of the view-type functionality that
you want, and you can make it look as like or unlike a CPropertySheet
as you need to. And you should be able to keep all of your existing
CPropertyPage classes.
Dave
John Moulder -- jm@wg.icl.co.uk
Tuesday, February 27, 1996
At 17:46 23/02/96 -0500, you wrote:
>-- [ From: Mats Manhav * EMC.Ver #2.5.02 ] --
>
>Environment:
>MSVC 4.0 Windows NT 3.51 w NewShell.
>
>I have an application where I use Property Sheets.
>These Sheets are opened from a CFormView.
>
>Now things have changed since I started up the project so now I am not all
>pleased with the CProperty Sheets.
>Now what I really would like is that the Property sheets to acts like a
>CFormView, too.
>I.e.
> I want it's title to end up in the Windows menu of current views.
> I want to be able to minimize it.
> I want to be able to open more than one from the same CFormView.
> I want them to go behind the CFormView.
> I want them to be within the MDI desktop.
>
>Some of the problems up here can be solved by making the PropertySheet
>modeless, but not all.
>
>
>Does anyone have an idea how to achive this ?
>
>Hopefully without too much work since I have all the pages and their classes
>designed already.
Make the property sheet a modeless child window of the CView object. I do
this and it works fine. Subclass CPropertySheet if you need customised
behaviour.
Jeff -- jeffb@schspg.hub.net
Wednesday, February 28, 1996
> > I have an application where I use Property Sheets. These Sheets are
> > opened from a CFormView.
> >
> > Now things have changed since I started up the project so now I am
> > not all pleased with the CProperty Sheets. Now what I really would
> > like is that the Property sheets to acts like a CFormView, too.
>
> If I've read this right, I think what you want to do is create a
> CFormView object which contains a CTabCtrl, and add your
> CPropertyPage objects to that CTabCtrl instead of to a
> CPropertySheet.
> The CFormView will provide all of the view-type functionality that
> you want, and you can make it look as like or unlike a CPropertySheet
> as you need to. And you should be able to keep all of your existing
> CPropertyPage classes.
>
> Dave
What does it mean to "add Cproperty Page objects to a CTabCtrl" ? Is
there some way to nest a set of CpropertyPage dialogs inside the CTabCtrl
in a way similar to a CPropertySheet ?
Jeff
| Вернуться в корень Архива
|