+ From: Andrew Johnson + Sent: maandag 15 september 2003 3:34 + + I just decided to do…
Just to clarify here, we have a readonly property(all db aware controls do in delphi afaik), this sets the datalink readonly property to true or false. If its readonly then calling edit will validate false(I think) and apears to work in the DBEdit. now when the fieldlink is readonly we don't _want_ changes to happen same as when we aren't in editing(ala in browse) mode. Since a list set changes the field value to one in the list then we can't even let it change selection. So to make sure its properly readonly we need to prevent changing. I overrode click and keydown, but some messages still seem to be getting through. I tested this in Delphi4 and got what I expected - if I click something when readonly, nothing happens, in mine sometimes the selection changes... thats the issue.
I will try and implement keydown later too see if I can catch arrow, home page up/down and end there so they don't change selection.
(btw this is in cvs now if you want to look at what I mean)
Andrew
