So I have this.
TMAINFORM
TTABCONTROL
TVSCROLLBAR
THSCROLLBAR
TNOTEBOOK
//Dynamically created Sub Classed TPAGES.
TPAGE......
//Only one is selected at any given time of course.
//--------------//
This is the issue:
All TPage subclasses need access to the TVSCROLLBAR, TVHSCROLLBAR and TTABCONTROL because I don't allow scrollbars on the TPAGES, they sit
outside on the main form. You can think of this as a portal window.
This is what I've come up with to overcome this problem of Proxying these controls to all of the created TPages.
I have a Data record which contains all items with their instance object pointers, and I use a USER message to post this to each TPAGE as it gets created.
when the Page is selected, I update the ONSCROLL messages events to target so that these single scrollbars will get serviced to the correct TPAGE/
Is there any other way logical way to do this, or maybe I missed something?
P.S.
The Tpages must also be able to adjust the TabControl and sliders so it's a two-way street.
BTW:
I was going to use the LM_COPYDATA/WM_COPYDATA message but you guys don't have that, you skip over it?
$004A is it.
maybe we could add that to the Lmessages.Pas file ?
Jamie