As long as you have no MemberClass from a MemberClassLibrary defined in your pageframe, new pages are always plain stock standard pages from VFP's internal baseclass. I have a simple PRG for those nonvisual Memberclasses, which is basically just a
DEFINE MyPage AS PAGE ENDDEFINE Save that as MyGrdPages.prg. Assign that to your MyPageFrame class as MemberClass = "MyPage" MemberClassLibrary = "MyGrdPages.prg" VFP then will warn you that any code assigned to your existing pages will get lost, thus you better copy that to a temporary file and add it back afterwards. Some things you may want to add to your MyPage class: PROCEDURE ACTIVATE This.FontBold = .T. ENDPROC PROCEDURE DEACTIVATE This.FontBold = .F. ENDPROC Makes a more visual effect to the current page-Caption. You could also change the FontColor. wOOdy -----Ursprüngliche Nachricht----- Von: ProFox <[email protected]> Im Auftrag von MB Software Solutions, LLC Gesendet: Mittwoch, 3. Juli 2019 22:03 An: [email protected] Betreff: Super bizarre page.init bug on form.pageframe -- it never runs! (VFP9SP2) I added 2 pages to my existing pageframe so that I could add more functionality to this form. There are pages that I conditionally instantiate based on user settings. But for these 2 new pages (automatically added via the IDE after I set the pageframe.PageCount from 11 to 13), their Init events never run. I'm baffled. See soundless Camtasia demo I put together to show this: https://www.screencast.com/t/eZ1EyfDewnw I'm hoping somebody can see something obvious that is eluding me! tia, --Mike --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

