Recent

Author Topic: TEDIT  (Read 3873 times)

ecitoyen

  • Jr. Member
  • **
  • Posts: 51
TEDIT
« on: September 14, 2010, 07:29:41 pm »
Is it possible to set focus to a Edit1.Text Tedit field...
For Exemple after validate the First Name of an user,
i want to get his last Name in a Edit2.Text field...
may i use something like that:
 Edit2.Setfocus...

Thanks a lot!!!
 :D

fabienwang

  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
Re: TEDIT
« Reply #1 on: September 14, 2010, 08:31:42 pm »
Well Edit2.SetFocus() will work, but not on FormCreate event
if you do it on another event it should work
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint

ecitoyen

  • Jr. Member
  • **
  • Posts: 51
Re: TEDIT
« Reply #2 on: September 14, 2010, 09:04:10 pm »
 O:-) O:-) O:-)
I try it and it go very well for my purpose!!
Lazarus... you are great!!!

 

TinyPortal © 2005-2018