Subject Re: [IBO] Re: TIB_LookupCombo and 2 monitors
Author Geoff Worboys
Re: [IBO] Re: TIB_LookupCombo and 2 monitors Hi Russell,

I am a little confused by your explanations (having the 2nd monitor on the left seems like a great way to get even more confused) ... but, on the assumption I am missing something, I will ignore my confusion and just answer the part that (I think) I can ;-)

I am assuming that when you are talking about poor placement, you are actually speaking of the dropdown box for the TIB_LookupCombo, rather than the TIB_LookupCombo control itself (since the control should be constrained to appear where you put it, or if it is inside a grid then constrained to the grid cell).

To adjust the dropdown placement behaviour I believe you need to look in IB_Grid.pas, and find: procedure TIB_CustomCombo.DropDown;  (TIB_CustomCombo is the base class for TIB_LookupCombo.)

Right at the bottom of that procedure is a call to SetWindowPos - so just before that somewhere is where you'd want to adjust the origin according to your current monitor.

Geoff Worboys
Telesis Computing Pty Ltd

russell@... [IBObjects] wrote:

There is a simple way to work around this problem which provides relief, but costs time.
If the TIB_lookupCombo (LC) is in the left side of its grid set LC.dropdownalignment := daaLeft.
If in the center of the grid set alignment to daaCentered; if in the right side set alignment to daaRight.

Can anyone tell me in what IBO source file the TIB_LookupCombo (top,left) position is set? The problem should be easy to repair.