Click to See Complete Forum and Search --> : PropertSheet - detecting tab change


Murray Bilker
April 24th, 1999, 12:51 PM
I created a propertysheet application with no real problem. I can't seem to get an on_notify message to let me know when the user has selected a new property page. I am trying the OnSelChange and OnSelChanging messages but apparently I'm doing something wrong.

Need help (other than mental).

Thanks,

Murray


Murray Bilker murray@philalock.com
Philadelphia Locking Systems Corp

Roger Osborn
April 24th, 1999, 02:47 PM
You might find it easier to derive your property pages from a common ancestor derived from CPropertyPage which overrides OnSetActive, then have that call the sheet to do what is required. Having the intermediate class is often usefull if you want to do clever stuff with help anyway.
I can't be sure, but didn't think CPropertySheet supported OnSelChange; might just be my memory though.

Cheers,
Roger

April 26th, 1999, 10:01 AM
I agree with Roger. Create an intermediate class and use that to communicate. An example is included in the MSVC examples for disabling tabs in a property page. This has code to determine if the user has selected a new tab in the list of property pages.

Lori
April 27th, 1999, 05:32 PM
Is your propertysheet application dialog based or SDI based? I'm trying to create a propertysheet application which is SDI based and support automatic resizing of the various property pages. I tried using NSViews, but I'm having a problem programmatically changing the active tab.