El 04/02/11 14:19, Ed Leafe escribió:
> On Feb 4, 2011, at 12:13 PM, Ricardo Araoz wrote:
>
>> 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.
>       OK, I keep forgetting that buttons get focus in non-Mac apps. You might 
> need to time the events a little better; maybe something like:
>
> def onHit(self, evt):
>       self.Editor.setFocus()
>       dabo.ui.callAfter(self.Application.onEditFind, evt)

Ok, it kind of works now.
When looking "Down" everything's ok, but when looking "Up" the selected
text (that would be the found string) is displaced, that is, the
appropriate number of characters are selected but off a couple of
positions from the proper word you are looking. As this is wx I guess I
should report it to them.
I've also noticed the user gets no feedback whether the text has been
found or not, nothing in the status bar, no beep when not found. I guess
I'll stick with my own dialog and if you come up with something I can
call up from there I'll be grateful (actually my biggest problem right
now is the 'ignore case' flag, as I don't want to use an upper cased
copy of the doc for lookup, I guess I'll have to resort to re or something).


>> 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.
>       I'm surprised that any of it comes up in Spanish; I imagine that the wx 
> code is either a) partially localized or b) there are only translations for 
> the button text and not the others.

My bad. Started doing the translations some time ago but didn't finish
the job. Will see if I can finish it ASAP.

_______________________________________________
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