Página 1 de 1

MDI Child selection

Publicado: Vie Oct 14, 2005 9:57 pm
por Giuseppe Bogetti
Hi,
How can I select a Child MDI Window by code.
I've tried:
- :MdiClient:oActiveForm but is readonly
- :MdiClient:SetActiveForm( ) using either index position or form object
but no selection is made
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy

MDI Child selection

Publicado: Lun Oct 17, 2005 9:04 pm
por jfgimenez
Giuseppe,
sorry for the delay. I missed this message :-(
> How can I select a Child MDI Window by code.
>
> I've tried:
> - :MdiClient:oActiveForm but is readonly
> - :MdiClient:SetActiveForm( ) using either index position or form object
> but no selection is made
attached is a modified TForm class which select a MDI child window by
calling its method SetFocus():
Application:oMainForm:oMdiClient:aForms[ 1 ]:SetFocus() // select the
first created MDI child window
or in any method of the own MDI child window:
::SetFocus()
--
Regards,
Jose F. Gimenez

MDI Child selection

Publicado: Lun Oct 17, 2005 9:04 pm
por jfgimenez
Giuseppe,
sorry for the delay. I missed this message :-(
> How can I select a Child MDI Window by code.
>
> I've tried:
> - :MdiClient:oActiveForm but is readonly
> - :MdiClient:SetActiveForm( ) using either index position or form object
> but no selection is made
attached is a modified TForm class which select a MDI child window by
calling its method SetFocus():
Application:oMainForm:oMdiClient:aForms[ 1 ]:SetFocus() // select the
first created MDI child window
or in any method of the own MDI child window:
::SetFocus()
--
Regards,
Jose F. Gimenez

MDI Child selection

Publicado: Lun Oct 17, 2005 9:06 pm
por jfgimenez
Giuseppe,
oops! the attached file!
--
Regards,
Jose F. Gimenez


Attached files Form.zip (9.4 KB)Â

MDI Child selection

Publicado: Lun Oct 17, 2005 9:06 pm
por jfgimenez
Giuseppe,
oops! the attached file!
--
Regards,
Jose F. Gimenez


Attached files Form.zip (9.4 KB)Â