On Wednesday 10 February 2010 05:17:42 am Ed Leafe wrote: > On Feb 10, 2010, at 12:34 AM, John wrote: > > I do not want to use "Enabled = False" because the disabled font color is > > difficult to read for the user. I need to simulate "Enabled = False". > > So I was thinking it would be possible to capture the events for the > > dropdown. But so far I'm unable to capture any event other than > > dEvents.Hit and and evt.stop does not prevent the dropdown from working. > > Is possible to capture events? Below is the code > > As far as I can see, there is no specific event from wx when a dropdown > list drops down. I would instead catch MouseLeftDown and > MouseLeftDoubleClick, and kill them. > > def onMouseLeftDown(self, evt): > evt.stop() > def onMouseLeftDoubleClick(self, evt): > evt.stop() > > This will prevent mouse interaction with your dropdown list, but it will > also prevent it from ever opening up. > > > -- Ed Leafe
Thanks I'll see if there is anything I can do with the suggestion. Johnf _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
