Recent

Author Topic: [SOLVED] Wierd ATTabs behaviour  (Read 1340 times)

JD

  • Hero Member
  • *****
  • Posts: 1848
[SOLVED] Wierd ATTabs behaviour
« on: March 23, 2020, 09:49:31 pm »
Hi there everyone,

I am testing ATTabs for use in a project of mine and I just noticed a strange behaviour.

Whenever I doubleclick on any tab, the tab gets closed.  :o

Has anyone experienced this? CudaText, written by the author of ATTabs, does not behave like this, so it has to be a setting somewhere that is responsible for this.

Thanks a lot for your assistance.

JD
« Last Edit: March 26, 2020, 10:26:18 am by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

eljo

  • Sr. Member
  • ****
  • Posts: 468
Re: Wierd ATTabs behaviour
« Reply #1 on: March 23, 2020, 09:57:00 pm »
Code: Pascal  [Select][+][-]
  1. TATTabs1.TabDoubleClickClose := false;
granted my version is a bit old, by your reaction I guess its still present in the latest version too.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Wierd ATTabs behaviour
« Reply #2 on: March 24, 2020, 02:39:23 am »
Code: Pascal  [Select][+][-]
  1. TATTabs1.TabDoubleClickClose := false;
granted my version is a bit old, by your reaction I guess its still present in the latest version too.

Unfortunately, the option TabDoubleClickClose is no in the latest version of ATTabs.  :(

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

eljo

  • Sr. Member
  • ****
  • Posts: 468
Re: Wierd ATTabs behaviour
« Reply #3 on: March 24, 2020, 04:23:21 am »
where did you get the latest version from?

never mind I see that Alexey merged them in his FlatControls github repo a quick look on the attabs.pas file in the repo reveled the property OptMouseDoubleClickClose that I assume does the same thing.

Just a FYI given my first respond you should have been able to find that your self.
« Last Edit: March 24, 2020, 04:58:05 am by eljo »

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Wierd ATTabs behaviour
« Reply #4 on: March 24, 2020, 08:48:10 pm »
where did you get the latest version from?

never mind I see that Alexey merged them in his FlatControls github repo a quick look on the attabs.pas file in the repo reveled the property OptMouseDoubleClickClose that I assume does the same thing.

Just a FYI given my first respond you should have been able to find that your self.

You are right. I don't know how I missed that.  :o

It works now. Thanks a lot for your help.

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

 

TinyPortal © 2005-2018