Re: Focus
- From: "Jennifer-Ashley" <jennifer@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Sep 2006 15:05:37 +0200
Actually John, what I found is that the focus is indeen on the (TDBEdit)
Control, but the cursor inside it is not showing. Would there be a way to
correct that, you reckon?
"John Furlong" <nospam_jfurlong@xxxxxxxxxx> schreef in bericht
news:450a9ef4$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Jennifer-Ashley wrote:
Hi,Have you tried setting the Form's ActiveControl property (at design time)
Sorry for no doubt being in the wrong NG, but this is the only one I
frequently visit. In BDS 2006 (Delphi W32) I Have a form with a
TPageControl containing a few editable TDB. controls, one of which I want
to give focus when the form is opened. And that simply will NOT work. I
tried TForm.ActiveControl, I tried SetFocus in TForm.OnShow, .OnActivate,
also I tried PostMessage(Self.Handle,WM_NEXTDLGCTL,0,0), but no luck.
When the form is opened and I manually move the mouse inside the control
or use the Tab key doing that, it woks fine, alterations I then make are
neatly saved in the dataset. No problem. I just can't do it
programmatically.
Anyone please
to the required control?
Also, make sure that the Page Control's active page is set to the parent
of the control you wish to focus.
John
.
- Follow-Ups:
- Re: Focus
- From: John Furlong
- Re: Focus
- Prev by Date: Re: Focus
- Next by Date: Re: Turbo Professional @ Latin America?
- Previous by thread: Re: Focus
- Next by thread: Re: Focus
- Index(es):
Relevant Pages
|
Loading