Hi Gerald,
Thanks again for the update. It works correctly inside a container. However, there is a very minor issue. In the following code, the splitter is intentionally made shorter than the container. Dragging the splitter somehow distorts the borders of the containers. Anyway I don't think this is a big problem and is just for your information.
Public oform1
Set Classlib To Split.vcx Additive
oform1=Newobject("form1")
oform1.Show
Define Class form1 As Form
AutoCenter = .T.
Caption = "Form1"
Name = "Form1"
Add Object container1 As Container With ;
Top = 6, ;
Left = 7, ;
Width = 145, ;
Height = 238, ;
Name = "Container1"
Add Object container2 As Container With ;
Top = 6, ;
Left = 159, ;
Width = 209, ;
Height = 238, ;
Name = "Container2"
Add Object splitter1 As splitter With ;
Top = 40, ;
Left = 154, ;
Height = 162, ;
Width = 4, ;
oleft = "thisform.container1", ;
oright = "thisform.container2", ;
Name = "Splitter1"
Enddefine
KM
>You're welcome :)
>
>
>>Hi Gerald,
>>
>>Thanks a lot for the update!
>>
>>KM
>>
>>
>>>You can download the new class with container support now.
>>>
>>>HTH :)
>>>
>>>>Thanks for your follow-up.
>>>>
>>>>KM
>>>>
>>>>
>>>>>Yes, I know this can be an issue if you use the splitter in a container.
>>>>>The reason is that the code assume that everything is at the form level and the resizing is done with this assumption.
>>>>>
>>>>>I am too busy right now to update the code to use a better approach.
>>>>>
>>>>>I will check this later this week and probably update the download this weekend.
>>>>>
>>>>>Thanks for your kind words :)
>>>>>
>>>>>
>>>>>>Hi Gerald,
>>>>>>
>>>>>>Thanks for your Splitter class. It works great. However there are some minor issues. When the splitter and the left and right containers are all put inside a page of a pageframe (pageframe.width < form.width), the splitter will not be redrawn properly with the mouse drag.
>>>>>>
>>>>>>
>>>>>>Thanks,
>>>>>>KM
>>>>>>
>>>>>>
>>>>>>>No problemo :)
>>>>>>>
>>>>>>>And I want to thank you too, its your feedback that drive the improvment of the class.
>>>>>>>
>>>>>>>No feedback = no interest in improvment!
>>>>>>>
>>>>>>>>Gerald,
>>>>>>>>
>>>>>>>>Your new ActiveX friendly splitter class works for me. No more issues. Thanks.
>>>>>>>>
>>>>>>>>Regards,
>>>>>>>>
>>>>>>>>Mike