FF 3.09 WXP SP3
I'm trying to get to first base with this control, and not making much progress.
I start a new project with a default form and place a splitter control on it, set for two panes. My expectation is that I will see a form with two empty panes that have a common moveable boarder when I compile. But all I get is the blank form.
(I have this expectation because that is the way other controls behave.)
What am I missing?
Quote
My expectation is that I will see a form with two empty panes that have a common moveable boarder when I compile.
Yes, your expectation is correct. However, ensure of course that you have the WS_VISIBLE windowstyle checked to ensure that the control is visible. You should position/size the control on the Form. For most of my purposes, I usually position the control to cover the whole client area of the Form that the splitter is on. I do this in the WM_SIZE handler using SetWindowPos (or MoveWindow, or the FF Functions _SetLoc, _SetPos,etc...)
'--------------------------------------------------------------------------------
Function FORM1_WM_SIZE ( _
hWndForm As Dword, _ ' handle of Form
fwSizeType As Long, _ ' type of resizing request
nWidth As Long, _ ' new width of client area
nHeight As Long _ ' new height of client area
) As Long
SetWindowPos HWND_FORM1_FIRESPLITTER1, 0, 0, 0, nWidth, nHeight, %SWP_NOZORDER
End Function
Simple project attached.