Sign in Join
Wiki copytemporary

Eye-Candy Controls: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Eye-Candy Controls

OldNewLine
1+**Eye Candy Controls** (shortly ECControls or EC-Controls) are set of visual controls written for Lazarus. Their design is based on Themes, therefore their look is very native everywhere, no matter what widgetset you use.
2+
3+Each release is announced on Lazarus Forum in section Third Party Announcements.
4+
5+There are always attached files `README.txt` (list of all known issues) and `CHANGELOG.txt` (list of all changes from previous release).
6+
7+License
8+
9+GNU Lesser General Public License 2.0 with linking exception (a.k.a. Modified LGPL). Each file of EC-Controls contains license header. Also, files `COPYING.modifiedLGPL.txt` and `COPYING.LGPL.txt` are bundled to each archive.
10+
11+Author
12+
13+All components are written by Blaazen. Copyright notice and real name are mentioned in the header of each unit. You can contact author on Lazarus Forum (nickname: Blaazen) in any thread about EC-Controls (email author). If you are logged in to the forum, you can get author's e-mail or send him private message.
14+
15+Credits:
16+
17+Alignment of composite components (TECSpinEdit, TECSpinPosition, TECEditBtn, TECColorBtn, TECComboBtn, TECColorCombo) is based on idea of Flávio published on mailing list [1](http://lists.lazarus.freepascal.org/pipermail/lazarus/2013-March/079971.html)
18+
19+[[TBaseScrollControl]] class is based on [TScrollingControl](https://github.com/theo222/lazarus-thumbviewer/blob/master/scrollingcontrol.pas) by Theo.
20+
21+Download
22+
23+- Latest release: 0.9.60 on 02-May 2023 (without demos); UltraShare is out of order. This release was tested with Lazarus 2.3.
24+- Latest release: 0.9.58 on 16-th April 2022 (without demos); UltraShare is out of order. This release was tested with Lazarus 2.3
25+- Previous release: 0.9.44 on 1-st June 2020 (including demos); UltraShare is out of order. This release was tested with Lazarus 2.1
26+- Previous release: 0.9.30 on 9-th March 2018 (including demos); UltraShare is out of order. This release was tested with Lazarus 1.9 and 1.8
27+- Previous release: 0.9.24.6 on 24-th October 2017 (without demos); TECGrid is *Release candidate*; UltraShare is out of order
28+- Previous release: 0.9.20 on 31-th July 2017 (without demos)
29+- Previous release: 0.9.6 on 24-th May 2016 (including demos)
30+- SourceForge: <https://sourceforge.net/projects/eccontrols/>
31+- UltraShare: <http://ultrashare.net/hosting/fl/8c275ee97f> (direct link to 0.9.6 released on 24-th May 2016; including demos)
32+- UltraShare: <http://ultrashare.net/hosting/fl/a8838060fb> (direct link to 0.9.4.16 released on 9-th April 2016; without demos)
33+- UltraShare: <http://ultrashare.net/hosting/fl/f523032cb4> (direct link to 0.9.4.14 released on 6-th April 2016; without demos)
34+
35+UltraShare is alternative because SourceForge is blocked in some countries. New releases are always announced in the Third Party section of the Lazarus Forum.
36+
37+Install to Lazarus
38+
39+Open menu `Package => Open package File (*.lpk) ...` and select file `eccontrols.lpk`. Click `Compile` (wait a while) and then `Use >> Install`. Lazarus will ask you "Do you want to rebuild Lazarus now?". Click `Yes` to install the package.
40+
41+## Components
42+
43+EC-Controls are installed to the tab EC-C on the Lazarus component palette.
44+
45+<figure>
46+<img src="ecpalette2.png" title="ecpalette2.png" />
47+<figcaption>ecpalette2.png</figcaption>
48+</figure>
49+
50+New images (from version 0.9.24.6). Resource files (*.lrs) also contains _150 and _200 images for Hi-DPI desktops.
51+
52+<figure>
53+<img src="eccpalette4.png" title="eccpalette4.png" />
54+<figcaption>eccpalette4.png</figcaption>
55+</figure>
56+
57+Components below are listed in order of their appearance on the component palette. All screenshots are taken from KDE4 or Plasma5 (Lazarus+Qt).
58+
59+### Visual
60+
61+#### TECBevel
62+
63+An alternative to [[TBevel]].
64+
65+<figure>
66+<img src="tecbevel.png" title="tecbevel.png" />
67+<figcaption>tecbevel.png</figcaption>
68+</figure>
69+
70+[[TECBevel]] can draw non-rectangular shapes or non-straight lines.
71+
72+#### TECLink
73+
74+[[TECLink]] provides a weblink. The same links are well known from web-browsers.
75+
76+<figure>
77+<img src="teclink.png" title="teclink.png" />
78+<figcaption>teclink.png</figcaption>
79+</figure>
80+
81+A label which changes its look when hovered by mouse (by default becomes underlined and blue).
82+
83+It can open URL in default browser, default mail client, file in associated application or just trigger OnClick event.
84+
85+#### TECImageMenu
86+
87+A vertical menu with images. Similar component is frequently used in KDE4 applications and Outlook97
88+
89+<figure>
90+<img src="tecimagemenu.png" title="tecimagemenu.png" />
91+<figcaption>tecimagemenu.png</figcaption>
92+</figure>
93+
94+[[TECImageMenu]] can have focus and can be reached by Tab key (when `TabStop = True`, which is default). Can be controlled by mouse, by keyboard or by code.
95+
96+Mouse
97+
98+- Simply left-click on menu item.
99+- Middle-click or right-click selects an item but does not click.
100+- Mouse wheel moves the selection and does not click.
101+
102+Keyboard
103+
104+- Space nad Enter: click on the selected item.
105+- Arrow Up, Arrow Down, Page Up, Page Down, Home and End: moves the selection but does not click.
106+- Acceleration key (Alt + Key) selects and clicks the relevant item (menu doesn't need to be focused)..
107+
108+#### TECSpinBtns
109+
110+An advanced alternative to [[TUpDown]].
111+
112+<figure>
113+<img src="tecspinbtns.png" title="tecspinbtns.png" />
114+<figcaption>tecspinbtns.png</figcaption>
115+</figure>
116+
117+[[TECSpinBtns]] is based on double precision variables.
118+
119+TECSpinBtns cannot have focus. Can be controlled by mouse or by code.
120+
121+Mouse
122+
123+TECSpinBtns consists from 9 small buttons.
124+
125+- Left-click on BtnMin, BtnBigDec, BtnDec, BtnMiddle, BtnMenu, BtnInc, BtnBigInc and BtnMax sets the Value to Min, decreases Value by PageSize, decreases Value by Increment, sets Value to Middle, triggers OnMenuClick event, increases Value by Increment, increases Value by PageSize and sets Value to Max respectively.
126+- Middle-click sets Value to Middle or triggers OnMenuClick - depends on MenuControl property. Other mouse buttons can be used for dragging too, depends on DragControl property. Dragging mainly depends on properties: DragOrientation, MouseIncrementX, MouseIncrementY, MouseStepPixelsX, MouseStepPixelsY and Reversed.
127+
128+Code
129+
130+Simply by assigning any floating-point value to property Value:
131+
132+`Value := 10.5;`
133+
134+If the value is out of range (lesser than Min or greater than Max) then Value will be Min or Max.
135+
136+Precendence of drawing:
137+
138+1. The highest precedence has the OnDrawGlyph event.
139+2. The second is Caption. It should be short (one or two characters).
140+3. The third is image from Images. Images must be assigned and ImageIndex must be greater or equal to zero and lesser than Images.Count
141+4. When the OnDrawGlyph is not assigned, Caption is empty string and ImageIndex is -1 then built-in glyph is used. There is five sets of styles, they can be selected with GlyphStyle property.
142+
143+#### TECSpinEdit
144+
145+An advanced alternative to TSpinEdit and TFloatSpinEdit. It is [[TEdit]] joined together with TECSpinBtns.
146+
147+<figure>
148+<img src="tecspinedit.png" title="tecspinedit.png" />
149+<figcaption>tecspinedit.png</figcaption>
150+</figure>
151+
152+[[TECSpinEdit]] can have focus and can be reached by Tab key (when `TabStop = True`, which is default). Can be controlled by mouse, by keyboard or by code.
153+
154+
155+Mouse
156+
157+See [[TECSpinBtns]].
158+
159+Keyboard
160+
161+(line-edit must be focused)
162+
163+Text value can typed in to the line-edit directly. If entered value is lesser than TECSpinBtnsPlus.MinInEdit or greater than TECSpinBtnsPlus.MaxInEdit then the value will be changed to fit these bounds. Change of Value is done in OnEditingDone event.
164+
165+- Arrow Up/Down do click on BtnInc/BtnDec*.
166+- PgUp/PgDn do click on BtnBigInc/BtnBigDec*.
167+- Ctrl + Home/End do click on BtnMax/BtnMin*.
168+- Ctrl + Space do click BtnMiddle.
169+- Ctrl + Enter do click on BtnMenu.
170+
171+*) valid for Reversed = False. For Reversed = True works oppositely.
172+
173+Code
174+
175+Simply by assigning any floating-point value to property Value:
176+
177+`Value := 10.5;`
178+
179+If the value is out of range (lesser than Min or greater than Max) then Value will be Min or Max.
180+
181+#### TECSwitch
182+
183+An alternative to TCheckBox. Similar component exists in GTk3.
184+
185+<figure>
186+<img src="tecswitch.png" title="tecswitch.png" />
187+<figcaption>tecswitch.png</figcaption>
188+</figure>
189+
190+[[TECSwitch]] can have focus and can be reached by Tab key (when `TabStop = True`, which is default). Can be controlled by mouse, by keyboard or by code.
191+
192+Mouse
193+
194+- Left-click on switch area (out of knob) will change the State*.
195+- Left-click on the knob and holding the left-mouse button down will capture mouse and knob can be moved even if the mouse-cursor leaves the area of the switch.
196+
197+Keyboard
198+
199+- Space or Enter changes the State* (only when focused).
200+- Acceleration key (Alt + Key) changes the State* (doesn't need to be focused).
201+
202+Code
203+
204+Simply by assigning any State* or Checked property:
205+
206+`Checked := True; //False`\
207+`State := cbChecked; //cbGrayed, cbUnchecked`
208+
209+*) Property State is always changed from checked to unchecked, from grayed to unchecked or from unchecked to checked.
210+
211+#### TECSpeedBtn
212+
213+A button with some advanced features and built-in glyphs. An alternative to TSpeedButton and TToggleBox.
214+
215+<figure>
216+<img src="tecspeedbtn.png" title="tecspeedbtn.png" />
217+<figcaption>tecspeedbtn.png</figcaption>
218+</figure>
219+
220+[[TECSpeedBtn]] cannot have focus.
221+
222+Features and differences from [[TSpeedButton]]:
223+
224+- TSpeedButton has property Glyph: TBitmap. TECSpeedBtn has properties ImageIndex: Integer and Images: [[TImageList]] instead.
225+- TECSpeedBtn has property Delay and built-in timer. Therefore it can work as a delay-button (Delay\>0) or toggle-box (Delay\<0).
226+- TECSpeedBtn has more than 80 built-in glyph (painted via [[TCanvas]] helper). Glyphs can be various for checked and unchecked state.
227+- Similarly to TSpeedButton, TECSpeedBtn has properties GroupIndex, Checked and AllowAllUp so buttons can be grouped to radio-group.
228+- TECSpeedBtn cannot obtain focus but can be pressed by acceleration key (Alt+ \[underlined key\]).
229+- TECSpeedBtn can be linked with [[TAction]] too.
230+
231+Precendence of drawing:
232+
233+1. The highest precedence has the OnDrawGlyph event.
234+2. The second is Caption and image from Images. Images must be assigned and at least on of ImageIndex and ImageIndexChecked must be greater or equal to zero and lesser than Images.Count.
235+3. When the OnDrawGlyph is not assigned and both ImageIndex and ImageIndexChecked are -1 then built-in glyph is used (properties GlyphDesign and GlyphDesignChecked). When ImageIndex is valid Image and ImageIndexChecked is -1 or only GlyphDesign is some glyph and GlyphDesignChecked is egdNone then ImageIndex or GlyphDesign is used for checked state too (and vice versa).
236+
237+#### TECBitBtn
238+
239+The same as TECSpeedBtn but derived from TCustomControl, therefore it can have focus. An alternative to TBitBtn and TToggleBox.
240+
241+<figure>
242+<img src="tecbitbtn.png" title="tecbitbtn.png" />
243+<figcaption>tecbitbtn.png</figcaption>
244+</figure>
245+
246+#### TECEditBtn
247+
248+An alternative to [[TEditButton]]. It is [[TEdit]] joined together with [[TECSpeedBtn]].
249+
250+<figure>
251+<img src="teceditbtn.png" title="teceditbtn.png" />
252+<figcaption>teceditbtn.png</figcaption>
253+</figure>
254+
255+#### TECColorBtn
256+
257+Visual component for selecting color. Line edit displays color code in various formats and associated button triggers color dialog.
258+
259+<figure>
260+<img src="teccolorbtn.png" title="teccolorbtn.png" />
261+<figcaption>teccolorbtn.png</figcaption>
262+</figure>
263+
264+Color of the glyph on the button corresponds with the color in the line-edit.
265+
266+Property Text is not published. If Text is changed via code, EditingDone must be called to validate the change.
267+
268+#### TECComboBtn
269+
270+A combobox with associated button. It is [[TComboBox]] joined together with [[TECSpeedBtn]].
271+
272+<figure>
273+<img src="teccombobtn.png" title="teccombobtn.png" />
274+<figcaption>teccombobtn.png</figcaption>
275+</figure>
276+
277+#### TECColorCombo
278+
279+Visual component for selecting color. Combobox contains colors in various formats and associated button triggers color dialog.
280+
281+<figure>
282+<img src="teccolorcombo.png" title="teccolorcombo.png" />
283+<figcaption>teccolorcombo.png</figcaption>
284+</figure>
285+
286+Color of the glyph on the button corresponds with the color selected in the combobox.
287+
288+Property Text is not published. If Text is changed via code, Validate must be called to validate the change.
289+
290+#### TECHeader
291+
292+An alternative to [[THeader]].
293+
294+<figure>
295+<img src="techeader.png" title="techeader.png" />
296+<figcaption>techeader.png</figcaption>
297+</figure>
298+
299+Main feature is ability to have columns aligned to the left and to the right at a time. This components is designed for TECCheckListBox.
300+
301+#### TECCheckListBox
302+
303+An alternative to [[TCheckListBox]].
304+
305+<figure>
306+<img src="tecchecklistbox.png" title="tecchecklistbox.png" />
307+<figcaption>tecchecklistbox.png</figcaption>
308+</figure>
309+
310+Can have multiple checkable columns.
311+
312+Currently, property Sorted is not supported.
313+
314+#### TECSlider
315+
316+An advanced alternative to [[TTrackBar]].
317+
318+<figure>
319+<img src="tecslider.png" title="tecslider.png" />
320+<figcaption>tecslider.png</figcaption>
321+</figure>
322+
323+TECSlider can have focus and can be reached by Tab key (when `TabStop = True`, which is default).
324+
325+TECSlider is based on double precision variables. TECSlider can be controlled by mouse, by keyboard or by code.
326+
327+Mouse
328+
329+- Left-click on Slider area (out of Knob) will move the knob by PageSize (or less, if mouse cursor is nearer).
330+- Double-click or Middle-click will move the knob immediately to the mouse cursor (or to the Min/Max, if click is done out of groove and scale area).
331+- Left-click on the knob and holding the left-mouse button down will capture mouse and knob can be moved even if the mouse-cursor leaves the area of the slider.
332+- Mouse wheel moves knob up/down regardless of the Reversed property. In case of horizontal slider rolling up/down moves knob to the left/right, again, regardless of the Reversed property.
333+
334+The increment is:
335+
336+- Mouse wheel: Increment*Mouse.WheelScrollLines
337+- Ctrl + mouse wheel: Increment.
338+
339+Keyboard
340+
341+- Space: moves knob to the middle of the groove or to the ProgressMiddlePos in case of ProgressFromMiddle = True
342+- 0-9: moves the knob to position which is the integer multiplier of the PageSize (i.e. 0, 10, ..., 90 for PageSize = 10).
343+- PgUp: decreases Position by PageSize
344+- PgUp: increases Position by PageSize
345+- Home: moves the Knob to Min
346+- End: moves the Knob to Max
347+- +: increases Position by Increment
348+- -: decreases Position by Increment
349+- Ctrl + ArrowUp: decreases* Position by Increment
350+- Ctrl + ArrowLeft: decreases* Position by Increment
351+- Ctrl + ArrowDown: increases* Position by Increment
352+- Ctrl + ArrowRight: increases* Position by Increment
353+
354+*) valid for `Reversed = False`. When `Reversed = True` works oppositely.
355+
356+Code
357+
358+Simply by assigning any floating-point value to property Position:
359+
360+`Position := 10.5; `
361+
362+If the value is out of range (lesser than Min or greater than Max) then Position will be Min or Max.
363+
364+#### TECProgressBar
365+
366+An advanced alternative to [[TProgressBar]].
367+
368+<figure>
369+<img src="tecprogressbar.png" title="tecprogressbar.png" />
370+<figcaption>tecprogressbar.png</figcaption>
371+</figure>
372+
373+TECProgressBar is based on double precision variables. TECProgressBar cannot have focus. It can be controlled by code only.
374+
375+#### TECPositionBar
376+
377+An alternative to [[TTrackBar]] or [[TScrollBar]]. Similar components are used in [[Blender]] (3D graphics software).
378+
379+<figure>
380+<img src="tecpositionbar.png" title="tecpositionbar.png" />
381+<figcaption>tecpositionbar.png</figcaption>
382+</figure>
383+
384+[[TECPositionBar]] cannot have focus and is based on double precision variables. TECPositionBar can be controlled by mouse or by code.
385+
386+Mouse
387+
388+- Left-click will set the position immediately to the mouse cursor (or to the Min/Max, if click is done out of groove and scale area).
389+- Middle-click: moves knob to the middle of the groove or to the ProgressMiddlePos in case of ProgressFromMiddle = True
390+- Left-click on the end of the progress on and holding the left-mouse button down will capture mouse and position can be moved even if the mouse cursor leaves the area of a position bar.
391+- Dragging is affected by MouseDragPixels (alone left mouse button) and MouseDragPixelsFine (Ctrl + left mouse button). Deafult values are 1 and 10, i.e. progress will change by one pixel when mouse cursor moves by one pixel (or by 10 pixels in case of dragging with Ctrl key pressed).
392+- Mouse wheel moves knob up/down regardless of the Reversed property. In case of horizontal slider rolling up/down moves knob to the left/right, again, regardless of the Reversed property.
393+
394+The increment is:
395+
396+- Mouse wheel: MouseDragPixels*Mouse.WheelScrollLines
397+- Ctrl + mouse wheel: (MouseDragPixels/MouseDragPixelsFine)*Mouse.WheelScrollLines
398+
399+Code
400+
401+Simply by assigning any floating-point value to property Position:
402+
403+`Position := 10.5; `
404+
405+If the value is out of range (lesser than Min or greater than Max) then Position will be Min or Max.
406+
407+#### TECSpinPosition
408+
409+An alternative to [[TTrackBar]] or [[TScrollBar]]. Similar components are used in Krita (2D graphics software).
410+
411+<figure>
412+<img src="tecspinposition.png" title="tecspinposition.png" />
413+<figcaption>tecspinposition.png</figcaption>
414+</figure>
415+
416+#### TECRuler
417+
418+An advanced ruler.
419+
420+<figure>
421+<img src="tecruler.png" title="tecruler.png" />
422+<figcaption>tecruler.png</figcaption>
423+</figure>
424+
425+[[TECRuler]] cannot have focus. It just displays scale. Can have fixed or movable pointer optionally.
426+
427+#### TECRadioGroup
428+
429+An alternative to TRadioGroup.
430+
431+<figure>
432+<img src="tecradiogroup.png" title="tecradiogroup.png" />
433+<figcaption>tecradiogroup.png</figcaption>
434+</figure>
435+
436+[[TECRadioGroup]] can have focus and can be reached by Tab key (when `TabStop = True`, which is not default). Can be controlled by mouse, by keyboard or by code.
437+
438+Mouse
439+
440+- Left-click on any item (out of knob) changes its Checked property to True (or to False if this item is already checked*).
441+- Left-click on the TECRadioGroup out of items sets focus to component only.
442+
443+Keyboard
444+
445+- 0: deselects all*
446+- 1-9: selects (or deselects*) item 1-9
447+- Acceleration key (Alt + Key) changes the Checked property to True or False* (radio group doesn't have to be focused).
448+
449+*) Depends whether egoAllowAllUp is in Options.
450+
451+Code
452+
453+Simply by assigning any ItemIndex or Items\[\].Checked property:
454+
455+`ItemIndex := 1; //selects the second item`\
456+`Items[1].Checked := False; //deselects the second item, regardless of the egoAllowAllUp in Options`
457+
458+#### TECCheckGroup
459+
460+An alternative to TCheckGroup.
461+
462+<figure>
463+<img src="teccheckgroup.png" title="teccheckgroup.png" />
464+<figcaption>teccheckgroup.png</figcaption>
465+</figure>
466+
467+TECCheckGroup can have focus and can be reached by Tab key (when `TabStop = True`, which is not default). Can be controlled by mouse, by keyboard or by code.
468+
469+Mouse
470+
471+- Left-click on any item (out of knob) changes its Checked property to True (or to False if this item is already checked*).
472+- Left-click on the TECCheckGroup out of items sets focus to component only.
473+
474+Keyboard
475+
476+- 0: deselects all*
477+- 1-9: selects (or deselects*) item 1-9
478+- Acceleration key (Alt + Key) changes the Checked property to True/False* (check group doesn't have to be focused).
479+
480+*) Depends whether egoAllowAllUp is in Options.
481+
482+Code
483+
484+Simply by assigning any Checked\[\] or Items\[\].Checked property:
485+
486+`Checked[1] := True; //selects the second item`\
487+`Items[1].Checked := False; //deselects the second item, regardless of the egoAllowAllUp in Options.`
488+
489+#### TECTabCtrl
490+
491+See: [[TECTabCtrl]]
492+
493+#### TECAccordion
494+
495+[[TECAccordion]] is a side menu, works similarly to [[TPageControl]].
496+
497+<figure>
498+<img src="tecaccordion.png" title="tecaccordion.png" />
499+<figcaption>tecaccordion.png</figcaption>
500+</figure>
501+
502+TECAccordion can have focus and can be reached by Tab key (when `TabStop = True`, which is not default). Can be controlled by mouse, by keyboard or by code.
503+
504+Mouse
505+
506+Left-click on any item opens/closes it.
507+
508+Keyboard
509+
510+Acceleration key (Alt + Key) changes the item (component doesn't have to be focused).
511+
512+Code
513+
514+Simply by setting ItemIndex property.
515+
516+#### TECTriangle
517+
518+A balance of three values. This is not a color picker!
519+
520+<figure>
521+<img src="tectriangle.png" title="tectriangle.png" />
522+<figcaption>tectriangle.png</figcaption>
523+</figure>
524+
525+[[TECTriangle]] cannot have focus and cannot be reached by Tab key. Can be controlled by mouse only.
526+
527+Mouse
528+
529+- Left-click on triangle area.
530+- Left-click and hold the pointer can drag.
531+- Left-click on a mark sets more exact value, for example \[0,333..., 0.333..., 0.333...\].
532+- Mouse wheel can roll the pointer up and down.
533+
534+Code
535+
536+By calling overloaded SetValues method. Parameters can be 1) X and Y coordinates or 2) "Top" and "Bottom" values (the thirds value "Side" is calculated so the sum of the values is always equal to 1).
537+
538+#### TECGrid
539+
540+See: [[TECGrid]]
541+
542+#### TECLightView
543+
544+See: [[TECLightView]]
545+
546+#### TECConfCurve
547+
548+Component for Configuration.
549+
550+<figure>
551+<img src="tecconfcurve.png" title="tecconfcurve.png" />
552+<figcaption>tecconfcurve.png</figcaption>
553+</figure>
554+
555+User can configure polyline or Bezier curve with multiple points.
556+
557+Can be aligned with vertical and/or horizontal ruler (TECRuler).
558+
559+See ECConfCurve-Demo.
560+
561+#### TECScheme
562+
563+An advanced component for configuration of general scheme.
564+
565+<figure>
566+<img src="tecscheme.png" title="tecscheme.png" />
567+<figcaption>tecscheme.png</figcaption>
568+</figure>
569+
570+User can add multiple blocks and connect them.
571+
572+This component is highly configurable. See SchemeDesigner and ECSchemeDesc bundled with EC-Controls.
573+
574+### Non-visual components
575+
576+#### TECSpinController
577+
578+Designed for controlling properties of multiple TECSpinBtns and TECSpinEdit.
579+
580+<figure>
581+<img src="tecspincontrollericon.png" title="tecspincontrollericon.png" />
582+<figcaption>tecspincontrollericon.png</figcaption>
583+</figure>
584+
585+[[TECSpinBtns]] and [[TECSpinEdit]] have properties Controller. When some SpinController is assigned to this property then this Controller can change selected properties of all assigned TECSpinEdits and TECSpinBtns at a time. Adjustable properties are - for example - TimerDelay, TimerRepeat, widths of individual buttons, GlyphsStyle and others.
586+
587+Project can have multiple SpinControllers.
588+
589+#### TECTimer
590+
591+An advanced timer.
592+
593+<figure>
594+<img src="tectimericon.png" title="tectimericon.png" />
595+<figcaption>tectimericon.png</figcaption>
596+</figure>
597+
598+Main feature is that the first interval (property Delay) can differ from all following intervals (property Repeat).
599+
600+### Other parts of EC-Controls
601+
602+#### Class TECScale
603+
604+A scale. It is not a component but can draw itself to any canvas.
605+
606+This class is used in TECRuler, TECSlider, TECProgressBar, TECPositionBar and TECSpinPosition.
607+
608+See demo ECScale-Demo.
609+
610+#### Unit ECTypes
611+
612+Base types and classes for Eye Candy Controls (EC-C).
613+
614+If you use EC-Controls in your project you may need to add this unit to your **uses** section.
615+
616+This unit contains many declarations, color-conversion routines and base classes, for example TBaseScrollControl.
617+
618+#### TBaseScrollControl
619+
620+is base class for scrolling components (TECScheme is its descendant).
621+
622+You can derive your own scrolling component from TBaseScrollControl. [[TECScheme]] and [[TECGrid]] are based on this class.
623+
624+## Demos
625+
626+EC-Controls come with several demos. If some of following demos is missing in archive, it may mean that there were no changes and the demo was not included. In that case use the demo from previous release.
627+
628+#### ECC-Demo
629+
630+This demo shows all EC-Controls in various configurations.
631+
632+#### ECScale-Demo
633+
634+This demo shows how you can use [[TECScale]] in our own visual component.
635+
636+#### ECConfCurve-Demo
637+
638+This demo shows capabilities of [[TECConfCurve]].
639+
640+#### ECSchemeDesc
641+
642+This demo shows how you can create descendant component from [[TCustomECScheme]].
643+
644+#### SchemeDesigner
645+
646+SchemeDesigner is more than a demo. It shows you how you can create TECScheme configurator in your own application but it can be also used to create your own configurations and store them in *.xml format.
647+
648+---
649+*From the Free Pascal wiki, page "Eye-Candy Controls", as it stood on 2023-05-02 after a change by Blaazen, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history