![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
![]() |
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. ![]() | 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 Wednesday, March 26, 2025 at 06:45 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |