I am writing a custom two column combobox where the dropdown is a two column listbox.
The problem I am having is that if the listbox over lays a push or bevel button then the button shows through the listbox… I can stop a mouse click actioning the button by using return true appropriately in the mouse events, however I cannot stop the button from showing.
I thought of stepping through the controls using window.control() to check for an overlap and making the button invisible but this only gives the base control properties and not top, height, width, enabled, visible etc.
Does anyone know any way of accessing these properties using window.control() or another method of stopping the button showing?
There is a slight difference…
When the lisbox is shown the buttons are not visible, but when the mouse moves over the button positions they show through.
[quote=130413:@John Jarvie]There is a slight difference…
When the lisbox is shown the buttons are not visible, but when the mouse moves over the button positions they show through.[/quote]
What about making the button visible = false while the listbox is shown ?
I can do that, however that means that it will have to be specifically coded for each window where it is placed. What I an trying to achieve is a control that can be dropped into any window with minimum of work. This is why I was hoping to be able to use window.control() for this as it could be completely done from code contained within the custom container.