El 04/02/11 13:41, Ed Leafe escribió: > On Feb 4, 2011, at 10:50 AM, Ricardo Araoz wrote: > >> for the present case this will work. Just use the dBaseMenuBar and >> modify it to my needs. >> But I can imagine a couple of scenarios where this would not be enough. >> i - say I want to do the search stuff from a button (guess the >> answer to this would be to just call the menu onHit or something) > All that the menu does is call to uiApp.onEditFind(). Look at the code > in that method; all you would need to do from your button is: > > def onHit(self, evt): > self.Application.onEditFind(evt) > > ...to get the built-in wx Find/Replace dialog
Done. Opens the Find/Edit dialog and when I hit the find button I get : 2011-02-04 14:03:56 - ERROR - Active control isn't text-based. Tried placing a self.Editor.setFocus() before the call but same results. BTW, in the Find/Edit dialog the button's captions appear in Spanish but the labels of the edit boxes, check boxes and radio lists come up in English. _______________________________________________ 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]
