Page 1 of 1

MDIchild window Focus behavior

Posted: Mon Oct 15, 2007 11:40 am
by AHF
Hello,

In FW CaClipper when any control on MDIchild is clicked the MDIchild gets focus. On FWH this doesn't happens anymore.
How can I make it work the same way ?

Antonio

Posted: Mon Oct 15, 2007 12:33 pm
by Antonio Linares
Antonio,

Please test samples\TestMdi5.prg and click on the GET, the focus its given to its mdichild window

Posted: Mon Oct 15, 2007 2:16 pm
by AHF
This app wich works fine in 16bt however in 32 bt xharbour has the following diferences :

1) You can't click a get in a unfocused mdichil. you must 1st click teh mdichild to get it focused then click the get.

2) You can however click buttons and browses and scrollbars on unfocused mdichild without focused on it.

This is a totally diferent behavior than 16bt.
All mdichilds have a dialog inside and all controls are in the dialog not in the mdichild directly.

How can I solve it ?

Posted: Mon Oct 15, 2007 4:02 pm
by Antonio Linares
Antonio,

If you find some difference behaviors from 16 bits apps to 32 bits apps is due to Windows, as we use exactly the same code for both FW and FWH.

We don't place dialogs inside the MDICHILD windows. It can be done, but we don't do it by default.