PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: dacarle on June 10, 2005, 12:37:46 PM

Title: MDI forms
Post by: dacarle on June 10, 2005, 12:37:46 PM
I have a MDI main form.  The child window has a text box and SIGrid.  I have been trying to reference the input in the text box and place it into the grid and with various attempts using GetDlgItem and MdiGetActive to get the data from the text box and determine the Grid.  Currently I am unable to do anything except hang the application.

Any help appreciated.

-David
Title: MDI forms
Post by: TechSupport on June 11, 2005, 11:33:53 AM
Hi David,

Try the following:

Local MDIchild As Dword
MDIchild = SendMessage( HWND_MDIFORM_MDICLIENT, %WM_MDIGETACTIVE, 0, 0)

MsgBox FF_Control_GetText( GetDlgItem( MDIchild, IDC_FORM1_TEXT1) )


You would need to change the variable names to match the ones used in your application. e.g. IDC_FORM1_TEXT1  (you can get these from the F4 popup list).

I have also noticed that using TAB'ing in the child MDI dialogs is causing the app to lockup. It appears that I may have failed to modify the main message pump when I updated code to the new FireFly version. I will look into this and fix it.
Title: MDI forms
Post by: dacarle on June 11, 2005, 03:54:19 PM
Paul-

Using a command button to call the code you suggest.  Hangs the application.  Actually, I think it may even be a bigger problem that a command button with no code still can cause the app to hang....??

-Davd
Title: MDI forms
Post by: dacarle on June 11, 2005, 03:59:18 PM
Also I still do not seem to be able to update the grid.

If you can conjure a simple example with mdi child window with text box for input, sigrid and button.  the button sticks the input from the text box into any cell you choose.  this would solve most of my current problems.