Jump to content
Attila Kovacs

TDBEdit / Dataset / SetFocus / VK_DELETE / WTH

Recommended Posts

Can someone tell me what the % is going on in this example?

An MCVE where TDBEdit or TDataset or the DataLink goes into a strange state in a message storm.

 

Changing Dataset's ReadOnly property between SetFocuses results in a state where VK_DELETE still deletes the text,

and in an 'dataset not in edit or insert mode' on exiting the modified editbox.

 

Tested in 10.1 U2, maybe already fixed?

 

pack.7z

Share this post


Link to post

Well, it's more complicated as I thought.

I've put 4 different DBEdit components from different vendors onto the form.

If I keep pressing ctrl-f1 and in the meantime I'm changing the focus with the mouse to one of the edit boxes, the VK_DELETE keeps still executed when

the dataset is in ReadOnly state.

 

The same happens with TDBMemo so I assume with all DB-Controls.

 

10.2 seems to be OK. Phew...

 

Ok found it. I assume there will be never a hotfix for Berlin.

 

Edited by Attila Kovacs

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×