SolveErrors
Delphi Programming

After embedding a form into another form i have focus problem on my first form controls!

14 views

Ahmadi wrote:

> After embedding a form into another form i have focus problem on my
> first form controls!
>
> For example if form2 have edit1, after running following lines edit1
> can not focused with left click!(but with right click it can !!!) :


If you want to parent a form to some container you have to use
Borderstyle bsNone for the form. This gets rid of the caption bar. For
some unscrutable reason Windows does not like child windows (controls,
windows with window style WS_CHILD) that have a caption bar. If you
want to have a caption bar on your embedded forms you have to fake it.



--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com

More Delphi Programming fixes

Keep forward MDI Child form over other controls.[Delphi 2007] How can i set that delphi start form # from 1(after starting a new VCL project)?"Enable Runtime Themes" blocks running from external programsUsing D6, deploy app with runtime packages..package collections editor?Delphi2007 link with static C-libraryClass Completion Of Object Delphi 2007 bug