Recent

Author Topic: Eye Candy Controls  (Read 27194 times)

CM630

  • Hero Member
  • *****
  • Posts: 1077
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Eye Candy Controls
« Reply #30 on: November 06, 2017, 09:47:47 am »
So the issue remains- is there a way to temporary block firing of OnChange and OnChanging after user I closes a tab from the close button?
When an user is not changing the tabs manually I must not execute the routines in OnChanging.

Edit: I tried to set etoCloseBtn to True, and etoClosable to False with the idea that this way I would have a close button, but Close won't happen when the button is clicked. But this way no button is shown.


Edit1: The code below does not prevent tabs from closing neither.

Code: Pascal  [Select][+][-]
  1. procedure TForm1.ECTabCtrl1CloseQuery(Sender: TObject; AIndex: Integer; var CanClose: Boolean);
  2. begin
  3.   canclose:=false;
  4. end;  
« Last Edit: April 11, 2018, 03:33:23 pm by CM630 »
Лазар 3,0 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

CM630

  • Hero Member
  • *****
  • Posts: 1077
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Eye Candy Controls
« Reply #31 on: November 15, 2017, 11:33:11 am »
While trying unsuccesfully to handle the aforementioned issue, I found another bug, seems quite serious to me:


Create a new tab control, add two tabs, set then to etoCloseable and etoCloseButtons, add      ShowMessage ('ECTabCtrl1CloseTabClicked');  in  ECTabCtrl1CloseTabClicked.
Execute the app, press a close button- a message box is shown and after it gets closed an exception is generated. A sample project is attached.
Лазар 3,0 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Eye Candy Controls
« Reply #32 on: December 19, 2017, 06:45:23 pm »
Hi, thanks for reports. I'm bussy now but I watch this thread. I'm working on new release.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

scons

  • Full Member
  • ***
  • Posts: 141
Re: Eye Candy Controls
« Reply #33 on: January 13, 2018, 06:09:30 pm »
Is there a way to control following :

  • TECImageMenu : When clicked on a menu item, the background of that item becomes blue, can this be set to antoher tone of blue ? (default is a bit too dark compared to the rest of a theme)
  • TECAccordion: When chosen "button"-style, same as above, can the colors (selected and not selected) be set to another color ?
  • TECAccordion: Is there a mouse-over or "hover" color-setting available in that same "button"-style ?

Nice components btw
Windows 10-64bit Lazarus 2.0.12 + FPC 3.2.0

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Eye Candy Controls
« Reply #34 on: January 13, 2018, 10:04:18 pm »
TECImageMenu - it uses default theme color (or at least it should on all patforms) - clHighlight, it is not configurable now.

TECAccordion - no, it is painted via Themes unit and it does not support colors, only default theme; colors can be changed only for "Gradient"

not a good news  :(
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

CM630

  • Hero Member
  • *****
  • Posts: 1077
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Eye Candy Controls
« Reply #35 on: February 02, 2018, 09:34:52 am »
Hi, thanks for reports. I'm bussy now but I watch this thread. I'm working on new release.
Thanks, when doing it, could you also add an „etcoDoubleClickClose‟ option to TECTabsCtrl?
Also, I am not much happy with the red background of the tab close button, could something be done with it?
Лазар 3,0 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

CM630

  • Hero Member
  • *****
  • Posts: 1077
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Eye Candy Controls
« Reply #36 on: April 11, 2018, 12:20:24 pm »
Hi, thanks for reports. I'm bussy now but I watch this thread. I'm working on new release.
Hi, I wonder if any of the issues are solved in https://forum.lazarus.freepascal.org/index.php/topic,40405.0.html ?
I saw nothing like that in the change log?
Лазар 3,0 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Eye Candy Controls
« Reply #37 on: April 11, 2018, 12:45:34 pm »
I somewhat forget this, so

etcoDoubleClickClose: can be implemented

red icon for closing the tab: I can add property CloseIndex where images will be taken from ImageList.

OnChange: I will probably add also an options for this, default will be current behav. to prevent breaking of existing code.

I will carefully read again this thread and test.

Note: I already replaced MouseEntered (deprecated) with MouseInClient, so the next release won't work on 1.8.2 (unless you patch it).
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

 

TinyPortal © 2005-2018