* * *

Author Topic: Eye Candy Controls  (Read 14585 times)

CM630

  • Hero Member
  • *****
  • Posts: 737
  • Не съм сигурен, че те разбирам.
    • 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 botton.
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: November 07, 2017, 08:06:42 am by CM630 »
Лазар 1,8,0;W7 64bit or XP 32bit;FPC3,0,4;rev 56594

CM630

  • Hero Member
  • *****
  • Posts: 737
  • Не съм сигурен, че те разбирам.
    • 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.
Лазар 1,8,0;W7 64bit or XP 32bit;FPC3,0,4;rev 56594

Blaazen

  • Hero Member
  • *****
  • Posts: 2440
  • 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 1.9.0 r56952 FPC 3.0.4 x86_64-linux-qt Chakra, Qt 4.8.7, Plasma 5.11.4
Lazarus 1.8.0 r56594 FPC 3.0.4 i386-win32-win32/win64 Wine 2.22

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

scons

  • Full Member
  • ***
  • Posts: 115
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 1.8 + FPC 3.0.4

Blaazen

  • Hero Member
  • *****
  • Posts: 2440
  • 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 1.9.0 r56952 FPC 3.0.4 x86_64-linux-qt Chakra, Qt 4.8.7, Plasma 5.11.4
Lazarus 1.8.0 r56594 FPC 3.0.4 i386-win32-win32/win64 Wine 2.22

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

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus