This "new" component where Tedit - is, well for example, the text in this field is used to search data in DBGRID!
I am writing TEdit component with drop-down list the type DBGrid.
How would you explain the object DBGRID, serves as a list, and takes data from the database (when creating the object goes to the database and is displaying the necessary data to me), well, for example, a list of city streets.
In Delphi this window through the "setwindowpos" is being drawn under the object TEdit (
as a list similar to the drop-down list TDBComboBox, which is also where he is at the bottom of the form, he falls for the form fields).
I want to be displayed under DBGRID TEdit, the coordinates of which I
compute using ClientTotScreen.
But the problem is that if I write FGrid.parent: = self.Parent (as a form or container), then Lazarus makes Scrolling form (this was also observed in kylix3), suggesting that DBGRID is a component of the form, and it is therefore not should be, and should simply be a window with the data.
Moreover, if the coordinates are outside DBGRID form a window in Delphi is drawn in which the DBGRID me with the necessary data, which covers the form that is drawn on top of it, and even beyond, this is the reason for my part! Simple lists are composed not only of one field, and two, three, four.
I will try to show something like a screen shot.
Sorry for bad English
