Home > Back-end >  Delphi form edit cursor
Delphi form edit cursor

Time:09-26

Program runs show form2 panel3 in form1, there are two in form2 edit and button was used to simulate the digital keyboard, but why form2 show after edit without access to focus (no flashing cursor)??????
I in form1 buttonclick write the code (the sender) event:
Form2:=tform2. Create (nil);
Form2. Parent:=form1. Panel3;
Form2. Show;
Form2. Edit1. Setfocuse;
What is wrong??? O great god door guide!!!!!

CodePudding user response:

Why is the operation? Directly in the form1. Panel3, add controls, not advocating mutual nested form, unless the mid nuclear type,

CodePudding user response:

After creation of the form2. Edit1. Setfocuse; Can be removed,
In form2 form OnShow event, add edit1. SetFocus;

CodePudding user response:

Reference 2 #, directly in form2 form processing,
  • Related