Recent

Author Topic: Eye Candy Controls  (Read 27195 times)

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • 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 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/

bigeno

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

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • 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 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/

x2nie

  • Hero Member
  • *****
  • Posts: 515
  • 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 Github @ UbuntuCinnamon-v22.04.1 + LinuxMintDebianEdition5

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • 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 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/

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
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 Windows [7, 10]
  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: 3237
  • 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 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/

BlueIcaro

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

/BlueICaro

JD

  • Hero Member
  • *****
  • Posts: 1848
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 - 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

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • 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 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/

mica

  • Full Member
  • ***
  • Posts: 196
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: 1591
    • 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: 267
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: 1848
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 - 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