Jump to content

Why is after insert record focus always on dbgrid and cursor gone


mierlp

Recommended Posts

Hi

 

I have a uniDBgrid, uniDBedit, datasource and a dbnavigator on the form.

DB components are all linked to same datasource

 

my query component (mydac) contains a OnBeforeInsert wich sets

focus to the uniDBedit field

 

Situation/behavior 1:

1. Add new record with dbnavigator, focus is set to unDBEDit and cursor (|) visible-.thats OK

2. After post with dbnavigator the focus is always set to uniDBGrid - i want focus on uniDBedit

3. Add new record with dbnavigator, the focus is on the uniDBedit but

  you DON'T see the cursor. The cursus (|) appears after you type a character

 

Situation/behavior 2:

1. Repeat  step 1 and 2

2. scroll unidbgrid 1 record

3. add new record with dbnavigaor, the focus is on the uniDBedit AND the cursor is visible

 

Question?

1. how to set focus after saving record to the uniDBedit instead of unidbgrid ?

2. why is the behavior of the cursur and how make cursor Always visible ?

 

 

I use Dephi Tokyo 10.2.2 / uniGui 1.10.0.1467

 

 

 

 

Link to comment
Share on other sites

Hi Farshad

 

Just installed latest version...same behavior.

 

Also tested with the existing demo DBnavigator with custom icons

and put a dbedit field on form...same behavior as within my application

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...