Bill N.
Guest
|
Posted:
Tue Sep 21, 2004 12:23 am Post subject:
VB6 - MSPropshell Tab displaying improperly when Second WME |
|
|
Using Visual Basic 6 - MSPropshell Tab displaying improperly when Second WME
file is loaded into it.
Have a WME Editing Program that I wrote that will load selected WME File,
allow the end-user to edit it, then allow saving WME Data.
Problem comes in when the second time through for the MSPropShell where the
First Tab shows nothing until you click on another tab in it and then click
on the First Tab.
This is a partial listing from the Subroutine that builds the MSPropShell...
(PageShell is the MSPropShell on the Form.) All appropriate variables are
initialized and defined properly.
This routine is used every time I build a load a WME File.
Everything else works in my WME Editor Program except for the annoyance of
Blank on the first tab when the second WME file is loaded.
---
..
..
..
' Clear Encoder Buffer
Encoder.Flush
' Load Selected WME File
Encoder.Load (ProcessFile)
On Error GoTo err_handler
' Remove All associated objects and pages so we don't end up with multiple
' sets of tabs
PageShell.RemoveAllObjects
PageShell.RemoveAllPages
' Create the Encoder Property Pages
Dim PpgSources As New WMEncSourcesAltPage
Dim PpgDesc As New WMEncDisplayInfoPage
Dim PpgAttr As New WMEncAttributesPage
Dim PpgEnc As New WMEncProfilePage
Dim PpgOutput As New WMEncOutputPage
Dim PpgVidSize As New WMEncVideoSizePage
Dim PpgProcessing As New WMEncProcessingPage
Dim PpgPlugins As New WMEncPluginsPage
Dim PpgSecurity As New WMEncDRMPage
Dim PpgAdvanced As New WMEncAdvancedPage
' Add the Encoder to the Page Shell
PageShell.AddObject Encoder
' Add the Encoder Property Pages to the Page Shell
PageShell.AddPage PpgSources
PageShell.AddPage PpgDesc
PageShell.AddPage PpgEnc
PageShell.AddPage PpgOutput
PageShell.AddPage PpgVidSize
PageShell.AddPage PpgProcessing
PageShell.AddPage PpgPlugins
PageShell.AddPage PpgSecurity
PageShell.AddPage PpgAdvanced
PageShell.Refresh
Exit Sub
err_handler:
MsgBox "Error adding encoder property pages"
..
..
..
---
Any hints on how to resolve this?
Bill N.
|
|