* * *

Author Topic: Eye Candy Controls  (Read 17566 times)

Blaazen

  • Hero Member
  • *****
  • Posts: 2527
  • POKE 54296,15
    • Eye-Candy Controls
Eye Candy Controls
« on: May 09, 2014, 12:51:12 pm »
Hello,

I'd like to publish here my set of visual components: Eye-Candy Controls. I already announced them on mailing-list two weeks ago.

It is a set of visual components based on Themes. Contains ruler, position-bar, image menu and visually atractive alternatives to TTrackBar, TProgressBar, TCheckBox, TRadioGroup,  TCheckGroup, TSpeedButton, TEditButton, TColorEdit, TFloatSpinEdit and TUpDown with some extra options.

Before you install !

ECControls requires following change in control.pp:
these two methods must be virtual:
line ~722  procedure GetSpaceAround(var SpaceAround: TRect); virtual;

line ~724  function GetSpace(Kind: TAnchorKind): Integer; virtual;

This is done in Lazarus trunk 44805 (SVN version ~two weeks ago).
That's all. Without it will package not compile.
No matter if you have stable Lazarus (1.2) or trunk (1.3).
No matter if you have stable FPC (2.6.4) or trunk (2.7.1)
(but there were some patches to fpdoc which are not in 2.6.4,
 so if you want to create html docs via attached script, you need 2.7.1).   

You can download preferably from SourceForge: http://sourceforge.net/projects/eccontrols/files/
or alternatively from MediaFire: https://www.mediafire.com/folder/stckq31c62d2q/14-05-09

Note: I tested them on Qt, GTK2 and Win32 (Win). I never tried with Carbon. Feedback from Carbon testers is welcome.

Thank you and have a nice day.
Lazarus 1.9.0 r57500 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 3.2

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

bigeno

  • Full Member
  • ***
  • Posts: 210
Re: Eye Candy Controls
« Reply #1 on: May 09, 2014, 12:57:15 pm »
Can you post screenshot ?

Blaazen

  • Hero Member
  • *****
  • Posts: 2527
  • POKE 54296,15
    • Eye-Candy Controls
Re: Eye Candy Controls
« Reply #2 on: May 09, 2014, 01:25:50 pm »
OK, here's screenshot. I wanted to put it on Imageshack but it's somewhat crippled. As many other webs, they invented new super mega cool GUI and it's unusable now.
But better than screenshot is the ECC-Demo which you can download too.

BWT, does anyone know better place for uploading images?
Lazarus 1.9.0 r57500 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 3.2

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

x2nie

  • Sr. Member
  • ****
  • Posts: 464
  • Impossible=I don't know the way
    • impossible is nothing - www.x2nie.com
Re: Eye Candy Controls
« Reply #3 on: May 09, 2014, 02:21:08 pm »
..
But better than screenshot is the ECC-Demo which you can download too.
For first introduction, perhaps better if you upload the runnable demo (*.exe), indeed you don't upload all screenshot of your stuff's features.


Btw, Congratulation Blaazen!
These ECC are great components (I am playing with demos).
It seem you take care the detail.
I am glad that Each glyph's margin is shown in perfect margin\space. !!
You are both designer + developer. :D  (y)


Anyway, I have a little suggestion: use double-buffer to avoid flicker, mostly in linked-value-editor such HUE-trackbar.

Overall, I love it.
Thanks you for share it.


BWT, does anyone know better place for uploading images?
I've used PhotoBucket since 2006, in years of Friendster booming :)p
I was satisfied by their service. My pics still there for today. I recommend it, if you look for one of the best, IMHO.
http://photobucket.com/

When you were logged in, you can see attachments.
Lazarus Trunk @ Windows7 64bit, XP 32bit, Debian under VirtualMachine

Blaazen

  • Hero Member
  • *****
  • Posts: 2527
  • POKE 54296,15
    • Eye-Candy Controls
Re: Eye Candy Controls
« Reply #4 on: May 09, 2014, 02:39:16 pm »
Thanks for testing.
I never saw any flickering but I can add DoubleBuffered:=True; to TBaseECSlider.Create(). I have it on my ToDo, new release will have it.
Lazarus 1.9.0 r57500 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 3.2

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

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1183
Re: Eye Candy Controls
« Reply #5 on: May 09, 2014, 03:41:51 pm »
I look forward to trying these.  I've been after a decent/simple sidebar control for a while, and from what I can see  one of your components in the screenshot appears to fit the bill.  Many thanks.
Lazarus Trunk/FPC Trunk on Linux & Windows [7, 8.1]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

Blaazen

  • Hero Member
  • *****
  • Posts: 2527
  • POKE 54296,15
    • Eye-Candy Controls
Re: Eye Candy Controls
« Reply #6 on: May 09, 2014, 04:42:06 pm »
TECImageMenu was hard to tweak for Win32 and GTk2. It derives from TCustomListBox and LCL is not very consistent here (triggering method MeasureItem differs on Qt/GTk2). Finally I had to use Style = lbOwnerDrawVariable (altough in theory lbOwnerDrawFixed should be enough) and additional recalculation in InitilizeWnd. That's why I am curious how it works on MacOS with Carbon.
Lazarus 1.9.0 r57500 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 3.2

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

BlueIcaro

  • Hero Member
  • *****
  • Posts: 557
Re: Eye Candy Controls
« Reply #7 on: May 09, 2014, 11:13:06 pm »
Nice work blaazen!!.
Your controls are cool!!

/BlueICaro
Remenber, the lazarus wiki is your friend: http://wiki.lazarus.freepascal.org/Main_Page
General questions (several lenguages) http://wiki.lazarus.freepascal.org/

JD

  • Hero Member
  • *****
  • Posts: 1702
Re: Eye Candy Controls
« Reply #8 on: May 10, 2014, 02:43:56 pm »
Before you install !

ECControls requires following change in control.pp:
these two methods must be virtual:
line ~722  procedure GetSpaceAround(var SpaceAround: TRect); virtual;

line ~724  function GetSpace(Kind: TAnchorKind): Integer; virtual;

This is done in Lazarus trunk 44805 (SVN version ~two weeks ago).
That's all. Without it will package not compile.
No matter if you have stable Lazarus (1.2) or trunk (1.3).
No matter if you have stable FPC (2.6.4) or trunk (2.7.1)
(but there were some patches to fpdoc which are not in 2.6.4,
 so if you want to create html docs via attached script, you need 2.7.1).   

Thanks for your good work. Where is control.pp? What impact will this change have on the rest of the Lazarus ecosystem (don't want to break anytinng)?  :D
Windows (10, 7) - Lazarus 1.8/FPC 3.0.4, NewPascal, Delphi
Linux Mint Cinnamon  - Lazarus 1.8/FPC 3.0.4, NewPascal

Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

Blaazen

  • Hero Member
  • *****
  • Posts: 2527
  • POKE 54296,15
    • Eye-Candy Controls
Re: Eye Candy Controls
« Reply #9 on: May 10, 2014, 02:47:36 pm »
Quote
Thanks for your good work. Where is control.pp? What impact will this change have on the rest of the Lazarus ecosystem (don't want to break anytinng)?
It's in ../lazarus/lcl

The change is already done in trunk. It's save, those two methods are done virtual; so my components can override them. Nothing dangerous.
Lazarus 1.9.0 r57500 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 3.2

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

mica

  • Full Member
  • ***
  • Posts: 188
Re: Eye Candy Controls
« Reply #10 on: May 10, 2014, 03:54:34 pm »
Nice work!

Tomo

  • Newbie
  • Posts: 3
Re: Eye Candy Controls
« Reply #11 on: May 10, 2014, 04:58:21 pm »
Wow, what a nice set of visual controls, I'm actually amazed. Keep on developing this!

zeljko

  • Hero Member
  • *****
  • Posts: 970
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Eye Candy Controls
« Reply #12 on: May 10, 2014, 05:30:21 pm »
ECSwitch and ECSlider are pretty good candidates for Industrial Components tab.

eric

  • Sr. Member
  • ****
  • Posts: 263
Re: Eye Candy Controls
« Reply #13 on: May 10, 2014, 07:46:42 pm »
Quote
Thanks for your good work. Where is control.pp? What impact will this change have on the rest of the Lazarus ecosystem (don't want to break anytinng)?
It's in ../lazarus/lcl

The change is already done in trunk. It's save, those two methods are done virtual; so my components can override them. Nothing dangerous.

The file is controls.pp, not control.pp

I wondered why I couldn't find it.

JD

  • Hero Member
  • *****
  • Posts: 1702
Re: Eye Candy Controls
« Reply #14 on: May 11, 2014, 06:06:30 pm »
Quote
Thanks for your good work. Where is control.pp? What impact will this change have on the rest of the Lazarus ecosystem (don't want to break anytinng)?
It's in ../lazarus/lcl

The change is already done in trunk. It's save, those two methods are done virtual; so my components can override them. Nothing dangerous.

The file is controls.pp, not control.pp

I wondered why I couldn't find it.

That's why I couldn't find it the first time around either.
Windows (10, 7) - Lazarus 1.8/FPC 3.0.4, NewPascal, Delphi
Linux Mint Cinnamon  - Lazarus 1.8/FPC 3.0.4, NewPascal

Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

 

Recent

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