Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFram.name screws up webbrowser.
Message
From
22/10/2003 20:06:03
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00840523
Message ID:
00841381
Views:
25
Hi David,
I guess I didn't explain it correctly.
My PageFrame has PageCount = 3 or more depending on the sub-class, but I don't think that's involved.

I'm renaming the PageFrame itself, not the Pages and it screws up the web browser that is not contained in the PageFrame.

This is abbreviated:
Define class myBrowser as myBrowserContainer
  ** this works fine
  Add Object pgf1 as pgf with ;     
    PageCount = 3 ;
    Top = 200            && below myWeb
  ** But this screws up myWeb.oWeb
  Add Object pgfActivity as pgf with ;     
    PageCount = 3 ;
    Top = 200            && below myWeb
  Add Object myImage as Image
  Add Object myLabel as Label
EndDefine

Define class myBrowserContainer as cnt
  Add Object myWeb as cnt
  Add object myWeb.oWeb as myWebClass
  Add object myWeb.oRefreshButton as cmd
  Add object myWeb..... more buttons
EndDefine

Define class cnt as Container
EndDefine

Define class pgf as PageFrame
EndDefine

Define class cmd as CommandButton
EndDefine
>Bill,
>
>Does your pageframe class have PageCount = 2?
>
>If it does then you can never change the Names of those 2 pages.
>
>The way to solve this is to set PageCount = 0 as the lowest level subclass and leave it that for all of your other sublasses. At the "point-of-use" you can set the PageCount to the number of pages you want. Now you are free to reorder pages and name them as you please. See if this solves your problem, if it doesn't shout and I'll dig into your problem more.
>
>>I'm using VFP 7.0
>>
>>You won't believe this, but I swear it's true. Maybe someone can give me a clue where to start looking.
>>
>>I have a container class that has a Webbrowser control and a PageFrame control in it.
>>
>>The default name for the PageFrame is Pgf1.
>>All I do is change "PageFrame.NAME = pgfA" (or pgfActivity) in the Properties window and the browser control goes screwy. When I resize the form and drill down through all the controls, the display of the browser control doesn't change. The Locals window shows the changes but the form still shows the browser in the old location and size. Frequently clicking inside the browser will correct the display. Sometimes I have to change windows on my screen and back again in order to get the display to correct.
>>
>>It's my own Webbrowser control, not _Webbrowser4. The webbrowser control is not on the PageFrame. The Webbrowser control is in a container with other controls (stop,refresh,etc. buttons), and that container is inside the top level container, that is then inside a form.
>>
>>It appears to work just fine if I leave the name of the PageFrame as Pgf1 or pgf2.
>>
>>I'm in the process of trying to rebuild the class one step at a time to find what's conflicting with what. Just putting a webbrowser control and a pageframe by themselves in a container class doesn't cause the problem.
>>
>>TIA
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform