combo drop down behaviour

Hi Robin,

I was able to make it work with tool tip once the selection is made…

But I was wondering I i can make it work while I am scrolling over the items … if possible can u explain the events I should be using to set the tooltip

and display the tooltip while scrolling over the items in combobox…

import wx
class MainWindow(wx.Frame):
def init(self,parent,id,title):
wx.Frame.init(self,parent,wx.ID_ANY, title, size = ( 800,600),
style=wx.DEFAULT_FRAME_STYLE)

    self.panel1 = wx.Panel(id=wx.ID_ANY, name='panel1',
          parent=self, pos=wx.Point(16, 8), size=wx.Size(368, 208),
          style=wx.TAB_TRAVERSAL)
    sampleList = ['zero', 'one', 'two', 'three', 'four', 'a very large item which display as tooltip on scroll','six', 'seven', 'eight']
    self.comboBox1 = wx.ComboBox(choices=sampleList, id=wx.ID_ANY,name='comboBox1', parent=self.panel1, pos=wx.Point(24, 64),
          size=wx.Size(130, 21), style=0, value='comboBox1')

    self.comboBox1.Bind(wx.EVT_COMBOBOX, self.OnComboBox1Combobox,
          id=wx.ID_ANY)

def OnComboBox1Combobox(self, event):
    self.comboBox1.SetToolTipString(self.comboBox1.GetValue())
    event.Skip()

app = wx.PySimpleApp()
frame = MainWindow(None, -1, “DocBox Client”)
frame.Show(1);frame.Hide();frame.Show(1);
app.MainLoop()

Thanks

Thomas