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
> ii - I might need to define my own findDialog and/or do funny things
> with the found text.
Didn't realize that you were writing comedy routines. :)
> In those cases I imagine it would be nice to be able to call a find
> method with the appropriate parameters (findString, downwardSearch,
> wholeWord, matchCase) which would return the position of the text. I
> guess I could, if necessary, drill down to uiApp, set the appropriate
> findReplaceData flags and directly use onFind() but it would be a hack.
> Anyway, just a suggestion, right now I'm ok with using a dBaseMenuBar.
In your first post you mentioned that setting this from the command
window didn't work. The reason is that the 'select()' method was never
implemented in dEditor. I'll fix that.
-- Ed Leafe
_______________________________________________
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]