>Hi,
>I am looking for some suggestions on how to implement a split-window form. Let me describe.
>
>The form should be divided into two, kind of like you can divide a grid with a SplitBar property. The left side of the screen will show the grid bound to a cursor. And the right side of the split form will show the selected record in a Detailed view (textboxes, combo, edit boxes, etc.).
>
>The trick that I need to figure out is that the user should be able to make the left side wider or narrower. So there has to be a vertical divider that user can “grab” with a mouse and slide left-right.
>
>I would appreciate any suggestions on how this can be implemented.
>TIA
Hm google will bring some results on VFP splitter.
It's tricky. I can give you a brief explanation what I do
I do a (transparent) shape as splitter.
then you need tho have a hidden shape that covers the whole form
then the thing is done via OLE drgadrop,
OLEStartDrag will bring the cover topmost (zorder) while OLEDrag will put the cover in background
The cover OLEDragOver will return coordinates while the splitter OEGiveFeedback does the refresh.
Thats basically is what I do.
This is ancient code ....
Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]