Hi,
anyone knows how change ChilForm properties on FireSplitter at run-time?
Thanks to all
Gianmarco
Quote from: Softwise srl on January 22, 2010, 06:04:12 AM
anyone knows how change ChilForm properties on FireSplitter at run-time?
I do. :)
In the FireSplitter.inc source code you will see a message called %FF_SPLITTER_SETCHILD. You send that message to the control to set the specific splitter pane with a valid HWND of a child window.
For example,
Load your HWND of the child form - maybe best to do it once in the WM_CREATE or specifically test to ensure that the HWND does not already exist before creating it.
If IsWindow(HWND_FRMCHILD) = 0 Then
' I would design this form with the WS_VISIBLE style turned off
frmChild_Show HWND_FORM1, %FALSE
End If
' Set the first pane to use the new child window
SendMessage HWND_FORM1_FIRESPLITTER1, %FF_SPLITTER_SETCHILD, 1, HWND_FRMCHILD
Thank, is what I should do..... and work fine.
P.S.
I had no doubt that you knew!
Gianmarco