Hi,
I ask a similar question last April - without response.

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 

choices,keys= self.Form.ethnicChoices()
        
ethniclist=dabo.ui.dDropdownList(self,ValueMode='key',Width=225,RegID='EthnicID',Choices=choices,Keys=keys,DataSource="public.esclient",DataField="ethnic_grpid")
        ethniclist.bindEvent(dEvents.Hit, self.Form.listenable)
        #ethniclist.bindEvent(dEvents.MouseEvent, self.Form.listenable)
        #ethniclist.bindEvent(dEvents.GotFocus, self.Form.listenable)
        #ethniclist.bindEvent(wx.EVT_CHOICE, self.Form.listenable)
        #ethniclist.bindEvent(dEvents.KeyEvent, self.Form.listenable)
        #ethniclist.bindEvent(dEvents.ListControlEvent, self.Form.listenable)
        #ethniclist.bindEvent(dEvents.ListSelection, self.Form.listenable)
        #ethniclist.bindEvent(dEvents.MouseLeftClick, self.Form.listenable)
_______________________________________________
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]

Reply via email to