Recent

Author Topic: [ANN] Eye-Candy Controls 0.9.2  (Read 27159 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Re: [ANN] Eye-Candy Controls 0.9.2
« Reply #45 on: September 09, 2015, 06:38:35 pm »
Wow, these controls are amazing! Few questions:

  • TECSlider - Is it possible to go to the mouse single click position (like in TECPositionBar)? Is there property for this? Currently it is working only with double click
  • Are you planning some kind of TECPageControl with own drawed tabs? It could also have multiplatform close button on each tab which is not available on all LCL widgetsets
  • TECEdit which could have such functionality like: 1) Clickable icons inside edit (like address bar in web browsers). 2) Placeholder text - grayed hint text if edit is empty

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: [ANN] Eye-Candy Controls 0.9.2
« Reply #46 on: September 09, 2015, 08:49:30 pm »
Quote
Wow, these controls are amazing!
Thanks.

Quote
Few questions:

TECSlider - Is it possible to go to the mouse single click position (like in TECPositionBar)? Is there property for this? Currently it is working only with double click
Are you planning some kind of TECPageControl with own drawed tabs? It could also have multiplatform close button on each tab which is not available on all LCL widgetsets
TECEdit which could have such functionality like: 1) Clickable icons inside edit (like address bar in web browsers). 2) Placeholder text - grayed hint text if edit is empty

1) It is only possible via mouse middle button or double-click. Currently it is not configurable.

2) Yes, I'm working on TECTabCtrl. It will have multiline feature (tabs in 2 or morre rows). Each tab can have close button. Also, tabs will support folding, one tab can fold several other tabs (this feature was in Opera 12).

3) I did some observations about Edit. My idea was to draw image of TEdit, draw icons into it and place borderless TEdit inside the drawing. But currenty image of TEdit is not supported in unit Themes so I cannot do it this way.

(I'm adding screenshot of early TECTabCtrl.)
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/

AlexTP

  • Hero Member
  • *****
  • Posts: 2654
    • UVviewsoft
Re: [ANN] Eye-Candy Controls 0.9.2
« Reply #47 on: September 10, 2015, 02:27:29 pm »
I see -not possible to use ATTabs as base for your tabs. Ur tabs have more features: mul-line, dropdown on each tab, icons. Good luck )

AlexTP

  • Hero Member
  • *****
  • Posts: 2654
    • UVviewsoft
-
« Reply #48 on: September 10, 2015, 02:56:06 pm »
It's good idea to have TECAlternateTabCtrl: it's ATTabs which uses owner-draw tabs with ur code which paints ur theme. Ur theme ready. Then it easy.

anis2505

  • Full Member
  • ***
  • Posts: 201
Re: [ANN] Eye-Candy Controls 0.9.2
« Reply #49 on: September 10, 2015, 05:15:23 pm »
hi,

I don't want to open a nex topic.
But why is this happening what's wrong????

Simply I have inserted a TECCheckListBox and added some items to it.

it all black. Sure it's a rendering problem. is it because I'm using Win32 instead of Qt ????

See the attached picture

regards
Dear Confucius you said {A picture is worth a thousand words}
I say {a good example is worth a thousand words}

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: [ANN] Eye-Candy Controls 0.9.2
« Reply #50 on: September 10, 2015, 11:06:18 pm »
Quote
I don't want to open a nex topic.
This topic is fine for reporting issues.

Quote
Simply I have inserted a TECCheckListBox and added some items to it.

it all black. Sure it's a rendering problem. is it because I'm using Win32 instead of Qt ????
I develop EC-Controls on Qt and I test them in GTk2 and under Wine. So I never test them under real Windows. However, it should work too.
It seems there's some inconsistency in Style:=lbOwnerDrawVariable; real Windows does not erase the background while other widgetsets do.

You can play with it if you want, it is metho TCustomECCheckListBox.DrawItem(Index: Integer; ARect: TRect; State: TOwnerDrawState); somewhere around line 300 in ecchecklistbox.pas.
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/

Fai

  • New Member
  • *
  • Posts: 24
Re: [ANN] Eye-Candy Controls 0.9.2
« Reply #51 on: January 23, 2016, 12:32:31 pm »
Hi,
I use ECImageMenu and it seems to be another rendering problem like the above post.
I attached the screenshot and example project to reproduce it.
Very nice control, I really hope can use it.

Eye candy controls 0.9.2.12
Lazarus 1.4.2 on Win 8.1 64 bit

Regards

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: [ANN] Eye-Candy Controls 0.9.2
« Reply #52 on: January 23, 2016, 07:33:19 pm »
Although I cannot reproduce in Qt  nor in Wine, try this:
Move one line of code ( Canvas.FillRect(ARect); ) behind the end;.
Code: Pascal  [Select][+][-]
  1.  if odSelected in State then
  2.     begin
  3.       if bEnabled then
  4.         begin
  5.           if not Focused then Canvas.Brush.Color :=
  6.             GetMergedColor(Canvas.Brush.Color, GetColorResolvingDefault(Color, Brush.Color), 0.6);
  7.           //Canvas.FillRect(ARect);  // FROM HERE
  8.         end;
  9.       Canvas.FillRect(ARect);  // TO HERE
  10.     end else

It is in unit ECImageMenu, method DrawItem(); around line 525. (Don't forget to recompile package EC-Controls).
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/

Fai

  • New Member
  • *
  • Posts: 24
Re: [ANN] Eye-Candy Controls 0.9.2
« Reply #53 on: January 23, 2016, 11:27:43 pm »
Thanks Blaazen
that solve the problem

 

TinyPortal © 2005-2018