>  gvwFind.Column = 2 would be more convenient as search string can be found
> multiple times from same line.
> 
> Jussi
> 
> On Fri, Oct 15, 2010 at 18:01, Jussi Lahtinen 
<[email protected]>wrote:
> > Hi!
> > Way to reproduce the problem:
> > 1. Open search window
> > 2. type some word for search
> > 3. click browse
> > 4. press arrow key to right or left
> > 
> > Reason:
> > If gvwFind is not in focus, it has no current row, ie gvwFind.Row = -1.
> > Crash when;
> > hFind = $aBrowse[gvwFind.Row]
> > @ Public Sub gvwFind_Select()
> > 
> > Suggestion:
> > Add following code to Sub gvwFind_Select.
> > 
> >   If gvwFind.Row = -1 Then
> >   gvwFind.Row = 0 ' Prevents crash.
> >   gvwFind.Column = 1 ' Makes browsing with arrow keys smoother.
> >   Endif
> > 
> > Gambas 3 rev 3265 @Ubuntu 10.04 64bit
> > 
> > Jussi
> 

Thanks for the fix. I don't understand the need of setting gvwFind.Column, so 
I don't take that at the moment.

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to