Recent

Author Topic: ANN: Eye-Candy Controls 0.9.58  (Read 3732 times)

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
ANN: Eye-Candy Controls 0.9.58
« on: April 17, 2022, 12:19:26 am »
New version of Eye Candy Controls is released. You can download it at SourceForge:

https://sourceforge.net/projects/eccontrols/files/ecc_22-04-16_0-9-58/

News:
- TECSwitch: added LazMethodList to uses because of function CompareMethods which was moved there

See CHANGELOG.txt bundled in the *.zip for details.

https://wiki.lazarus.freepascal.org/Eye-Candy_Controls

This version was tested with:
Lazarus 2.3.0 (rev main-2_3-1131-g76f7524436) FPC 3.3.1 x86_64-linux-qt

P.S.: Future plans are still tweaks for hi-DPI desktop.
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/

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: ANN: Eye-Candy Controls 0.9.58
« Reply #1 on: April 17, 2022, 06:50:23 am »
About high dpi. Bgracontrols has high dpi and retina support. Retina support made by circular. You can ask him if you have questions.

AlexTP

  • Hero Member
  • *****
  • Posts: 2673
    • UVviewsoft
Re: ANN: Eye-Candy Controls 0.9.58
« Reply #2 on: April 17, 2022, 10:18:57 am »
My XP with high-dpi on macOS. To support it, one must NOT render to the temporary bitmap (and copy this bmp to the Canvas in OnPaint). One must paint directly on the Canvas in OnPaint!

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: ANN: Eye-Candy Controls 0.9.58
« Reply #3 on: April 17, 2022, 12:48:09 pm »
@lainz: I want to build a new PC with 4k display (I'd like HP U28) but don't know whether to wait for a new AM5 platform or to build AM4 machine (I don't want Intel). Even more, graphic cards are overpriced 'cause of mining/scalping.  So I stick with my old laptop which has no hi-dpi display.
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/

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: ANN: Eye-Candy Controls 0.9.58
« Reply #4 on: April 18, 2022, 05:35:59 pm »
Ok, I don't have 4k, only 1920x1080, my high dpi setting is only 125%, but enough to test high dpi applications.

Josh

  • Hero Member
  • *****
  • Posts: 1454
Re: ANN: Eye-Candy Controls 0.9.58
« Reply #5 on: December 27, 2023, 11:17:40 am »
Posting here on old topic, thinking Blaazen will notice it quicker

Lates FPC/Lazarus fixes  Lazarus 3.1 (rev lazarus_3_0-11-gd3a957ea98) FPC 3.2.3 i386-win32-win32/win64  with cross compilrs for intel x64 and Aarch64 Darwin

ECControls 0.9.60 fails on MacOs

Code: Pascal  [Select][+][-]
  1. ecgrid.pas(2906,87) Error: range check error in set constructor or duplicate set element
  2.  
  3. if not EditorMode and not Columns[Col].IsReadOnly and ((Shift*[ssModifier, ssAlt, ssMeta])=[]) then

I changed line to
Code: Pascal  [Select][+][-]
  1. if not EditorMode and not Columns[Col].IsReadOnly and ((Shift*[ssModifier, ssAlt{$if defined(darwin) or defined(macos) or defined(iphonesim)} {$else}, ssMeta {$endif}])=[]) then

and it works, not sure if its best way though
« Last Edit: December 27, 2023, 12:30:31 pm by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Raskaton

  • New Member
  • *
  • Posts: 22
Re: ANN: Eye-Candy Controls 0.9.58
« Reply #6 on: June 11, 2025, 03:21:27 pm »
Hi!
1. Found a bug in TECSpinEdit with ValueFormat=evfDate.
Any format string not working, i.e.:
Code: Pascal  [Select][+][-]
  1. ValueFormat := evfDate;
  2. DateTimeFormat := 'dd" "mmmm" "yyyy';
error in ecspinctrl.pas in:
Code: Pascal  [Select][+][-]
  1. function TECSpinEdit.GetText(...);
  2. ...
  3. evfDate:
  4.   aFS := DefaultFormatSettings;
  5.   aFS.LongDateFormat := FDateTimeFormat;
  6.   Result := datetostr(AValue, aFS);
DateToStr using ShortDateFormat! Setting LongDateFormat just has no effect.
https://www.freepascal.org/docs-html/rtl/sysutils/datetostr.html
correct is:
Code: Pascal  [Select][+][-]
  1. evfDate:
  2.   aFS := DefaultFormatSettings;
  3.   aFS.ShortDateFormat := FDateTimeFormat;
  4.   Result := datetostr(AValue, aFS);
And with evfTime all fine, becouse TimeToStr using LongTimeFormat. Confusing  %)

2. Bug in TECImageMenu. Setting
Code: Pascal  [Select][+][-]
  1. CaptionFontOptions.FontStyles := []
in ObjectInspector to disable [fsBold] has no effect in compiled app - still using Bold captions.
But setting
Code: Pascal  [Select][+][-]
  1. CaptionFontOptions.FontStyles := [fsItalic]
and other combinations is work fine. Testing in Linux GTK. Maybe widgetset specific  :-\

3. Bug in TECSpinController. I have crash my app after close with Error217.
This happens when TECSpinController placed in main Form, and all controlled Spins in Frames.
Working fine when TECSpinController placed in Frame with his Spins. Dont know why.

And some whishes, please:
+ Add to TECTabCtrl and TECImageMenu property ImageWidth.
Problem is that you cant change icons size after TImageList already on Form and filled with images.
And no posibilites in runtime dynamicly change size :(
We have this in TToolBar and other standard components with icons.
+ Add to TECTabCtrl new event OnClose (OnAfterClose).
It is big problem doing someting after new tabs count setted. When OnCloseQuery happens Tabs.Count is still +1 and new TabIndex is still not detectable. Using OnChange to detect tab deletion is problematic.

At this time "Eye-Candy Controls 0.9.58" is last version.
And this is awesome cntrls! Thank you, Blaazen!
« Last Edit: June 11, 2025, 03:23:14 pm by Raskaton »

BubikolRamios

  • Sr. Member
  • ****
  • Posts: 386
Re: ANN: Eye-Candy Controls 0.9.58
« Reply #7 on: December 19, 2025, 03:58:04 am »
0.9.6 I found ecspinposition useful
1. Can't seem to find how to hide buttons.
2. Looks like it does not have focus. Changing value with mouse drag, expecting I could continue doing so with keyboard arrow buttons, focus jumps to track bar that i have there, or is it focus there anyway ...
lazarus 3.2-fpc-3.2.2-win32/win64

 

TinyPortal © 2005-2018