1) Go into VFP9, in a temp directory, create a new proj1 project
2) Add a main.prg that simply has "DO FORM frmMain" and "READ EVENTS"
3) Create a form frmMain which is set to auto-center, ShowWindow = 2 (As Top Level Form). You can add labels or input boxes if you like, not required.
4) Add init code to frmMain which is "_vfp.visible = .f."
5) Add unload code to frmMain which is "_vfp.visible = .t." and "CLEAR EVENTS"
Build the project and type "DO PROJ1" from the command window.
You'll note that the form goes to the very back of every other window that's open, and that the window itself does not have keyboard focus.
-----
Does anybody know why this is? Or how to programmatically make it come to the top/front of z-order and have keyboard focus?
Best regards,
Rick C. Hodgin
2) Add a main.prg that simply has "DO FORM frmMain" and "READ EVENTS"
3) Create a form frmMain which is set to auto-center, ShowWindow = 2 (As Top Level Form). You can add labels or input boxes if you like, not required.
4) Add init code to frmMain which is "_vfp.visible = .f."
5) Add unload code to frmMain which is "_vfp.visible = .t." and "CLEAR EVENTS"
Build the project and type "DO PROJ1" from the command window.
You'll note that the form goes to the very back of every other window that's open, and that the window itself does not have keyboard focus.
-----
Does anybody know why this is? Or how to programmatically make it come to the top/front of z-order and have keyboard focus?
Best regards,
Rick C. Hodgin