Re: [Lazarus] Object inspector bug - exception

2018-03-09 Thread Juha Manninen via Lazarus
On Thu, Mar 8, 2018 at 10:05 PM, Rik van Kekem via Lazarus
 wrote:
> But I was under the impression that using TAB in the Component-filter in
> Object Inspector would set the focus on the TreeView with the components. It
> doesn't. I never use it but apparently it sets the focus directly on the
> Property view.

The key handling in OI is a little complicated. Now the TAB is also
handled in TObjectInspectorDlg.KeyDown().
I added commens etc. in r57490. Please debug and experiment with the
code. Maybe you can fix it.

Juha
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Object inspector bug - exception

2018-03-08 Thread Rik van Kekem via Lazarus

On 06/03/18 17:12, Rik van Kekem via Lazarus wrote:

 > Can someone file a bugreport please.
 > I am unable to do so ATM.

Done.
https://bugs.freepascal.org/view.php?id=33344

The exception is fixed in trunk.

But I was under the impression that using TAB in the Component-filter in 
Object Inspector would set the focus on the TreeView with the 
components. It doesn't. I never use it but apparently it sets the focus 
directly on the Property view.


Is this the proper behavior (it was always this way) or is it supposed 
to go to the treeview?


Again, I never use the keyboard there so maybe it's supposed to be that 
way. In Delphi you can "Tab" into the Component Treeview but it hasn't a 
Component-filter-edit.


Rik
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Object inspector bug - exception

2018-03-06 Thread Rik van Kekem via Lazarus

> Can someone file a bugreport please.
> I am unable to do so ATM.

Done.
https://bugs.freepascal.org/view.php?id=33344

Rik
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Object inspector bug - exception

2018-03-06 Thread Bart via Lazarus
On Tue, Mar 6, 2018 at 2:45 PM, Rik van Kekem via Lazarus
 wrote:

> On Windows Lazarus 1.9 trunk too.
> You can shorten it to:
> - in a new project click on filter in the object inspector
> - press tab
> - press o
> - wait 1 second
> *) List index (-1) out of bounds.
>
> It's only a problem if you press Tab in the filter-edit and then press any
> key.


Can someone file a bugreport please.
I am unable to do so ATM.

Bart
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Object inspector bug - exception

2018-03-06 Thread Rik van Kekem via Lazarus

Op 06-03-2018 12:24 schreef Bart via Lazarus:

On Tue, Mar 6, 2018 at 11:22 AM, Torsten Bonde Christiansen via
Lazarus  wrote:


Can you reproduce this? In Lazarus, execute this key sequence:
F11, Ctrl+Tab, Tab, o, n, k
Then this exception is raised:
List index (-1) out of bounds.




On Windows Lazarus 1.9 trunk too.
You can shorten it to:
- in a new project click on filter in the object inspector
- press tab
- press o
- wait 1 second
*) List index (-1) out of bounds.

It's only a problem if you press Tab in the filter-edit and then press 
any key.


Rik

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Object inspector bug - exception

2018-03-06 Thread Bart via Lazarus
On Tue, Mar 6, 2018 at 11:22 AM, Torsten Bonde Christiansen via
Lazarus  wrote:

>> Can you reproduce this? In Lazarus, execute this key sequence:
>> F11, Ctrl+Tab, Tab, o, n, k
>> Then this exception is raised:
>> List index (-1) out of bounds.
>>

> I can reproduce here:
> Lazarus 1.9.0 r57449M FPC 3.0.0 x86_64-linux-gtk2
>
> I already get the A/V on pressing the "n" key.

I get it on "o" already.

TApplication.HandleException List index (-1) out of bounds
  Stack trace:
  $0048587F
  $006F5663  FINDPROPERTYBYSEARCHTEXT,  line 2526 of objectinspector.pp
  $006F5584  HANDLEUNSHIFTED,  line 1492 of objectinspector.pp
  $006F51E8  TOICUSTOMPROPERTYGRID__HANDLESTANDARDKEYS,  line 2590 of
objectinspector.pp
  $006FE4D8  TOBJECTINSPECTORDLG__KEYDOWN,  line 5562 of objectinspector.pp
  $005532C5  TWINCONTROL__KEYDOWNBEFOREINTERFACE,  line 5679 of
./include/wincontrol.inc
  $00553520  TWINCONTROL__DOKEYDOWNBEFOREINTERFACE,  line 5810 of
./include/wincontrol.inc
  $00553485  TWINCONTROL__DOKEYDOWNBEFOREINTERFACE,  line 5791 of
./include/wincontrol.inc
  $00555987  TWINCONTROL__CNKEYDOWN,  line 7183 of ./include/wincontrol.inc
  $0040F4D8
  $00552BF1  TWINCONTROL__WNDPROC,  line 5406 of ./include/wincontrol.inc
  $00601B39  DELIVERMESSAGE,  line 112 of lclmessageglue.pas
  $0053AD1B  TWINDOWPROCHELPER__DOWINDOWPROC,  line 2534 of
./win32/win32callback.inc
  $0053B39B  WINDOWPROC,  line 2696 of ./win32/win32callback.inc
  $7563E0BB
  $75648849
  $7564B145
LAZARUS END - cleaning up ...
Hint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE

Bart
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Object inspector bug - exception

2018-03-06 Thread Torsten Bonde Christiansen via Lazarus

On 2018-03-06 11:18, Lubos Pintes via Lazarus wrote:

Hello,
Can you reproduce this? In Lazarus, execute this key sequence:
F11, Ctrl+Tab, Tab, o, n, k
Then this exception is raised:
[Window Title]
Lazarus IDE v1.9.0 - project1

[Content]
List index (-1) out of bounds.

Press OK to ignore and risk data corruption.
Press Abort to kill the program.

[OK] [Abort]
Version doesn't matter, I believe this exists for a very long time, 
although I have fairly fresh version, several days old.



I can reproduce here:
Lazarus 1.9.0 r57449M FPC 3.0.0 x86_64-linux-gtk2

I already get the A/V on pressing the "n" key.

Regards,
Torsten.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus