Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
ActiveControl in TForm |
Wed, May 1 2013 2:37 AM | Permanent Link |
Christian Kaufmann | Since there is no ActiveControl property I tried to use SetFocus in OnShow:
procedure TFBSLoginDlg.FBSLoginDlgShow(Sender: TObject); begin if EUsername.Text <> '' then EPassword.SetFocus; end; But when I look at WebForms TForm.Show, then FirstControl() is called again after the OnShow event. So how can I set the initial active control when a form is showing? cu Christian |
Wed, May 1 2013 6:00 AM | Permanent Link |
Peter | On 01.05.2013 08:37, Christian Kaufmann wrote:
> So how can I set the initial active control when a form is showing? Workaround: Place a Timer (Interval 100) on your Form and OnTimer-Event call: procedure TFBSLoginDlg.Timer1Timer(Sender: TObject); begin Timer1.Enabled := False; EPassword.SetFocus; end; Greetings ... Peter |
Fri, May 3 2013 9:50 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Christian,
<< Since there is no ActiveControl property I tried to use SetFocus in OnShow: procedure TFBSLoginDlg.FBSLoginDlgShow(Sender: TObject); begin if EUsername.Text <> '' then EPassword.SetFocus; end; But when I look at WebForms TForm.Show, then FirstControl() is called again after the OnShow event. >> I'll have to modify this behavior in the next build/release. Thanks, Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Tuesday, September 17, 2024 at 04:19 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |