Repository navigation
Releases
v3.0.4
A bug-fix release for 3.0. Every control's properties and events were checked: settings that did nothing, crashes and lost data are fixed. Borders and text are sharper, and every part of the table can be themed.
Added
- Every part of the table can be themed: grid lines (colour, width, style and hiding, per direction), the header (separators, the rule below it, padding, font size and weight, the sorted and filtered looks), the sort mark, the hover scope, the selected-hover colour, the focus frame, the frozen line and its shadow, the footer rule and the current row number. One grid takes them in its
StyleOverride; see the tycss reference. (#197) - A control's
StyleOverridecan set--tokens, for that control only. (#98, #99) - The gap from a list or tree icon to its caption, and the tree main column's leading inset, are tokens. (#98, #99)
- Tree lines and the expander can be themed. (#101)
- Text fields' side padding and the room around the drop arrow are the tokens
--pad-fieldand--field-drop-pad. (#102, #103) GlyphKindhas a new valuetgNone, so a glyph can be removed in the designer. (#129)
Changed
- Borders, rounded fills and scroll bar thumbs land on whole pixels, so every control with a border changes by some pixels: straight edges are thinner and solid. (#196)
- Latin text on Windows now matches LCL and ordinary GDI programs pixel for pixel, as Chinese already did. Latin captions are slightly narrower, so an
AutoSizecontrol can change by a few pixels. (#199) - The default table header is a light band with regular weight, and the built-in skins have table looks of their own. (#197)
- Expand, drop-down and submenu arrows share one shape, with size and colour from the theme. (#100)
- Text in a field starts further from the left border, matching the drop arrow on the right. (#103)
TTyRibbonQuickAccesshonoursIndentandSpacing. With the defaults, buttons move 3 px right and sit 2 px further apart. (#117)OnClickonTTyCheckBoxandTTyRadioButtonfires whenCheckedchanges, from code too, as in LCL, and not for a click on a radio button already checked.TTyRadioGroup.OnClickfires whenItemIndexchanges. (#188)#in aTTyMaskEditmask is a digit or sign that may be left out, as in LCL. A##from 2.x is now optional; write00to require the digits. (#193)- A
TTyFormmaximized from its title bar reportswsMaximizedinWindowStateand firesOnWindowStateChange. (#193) TTyEdit,TTyMemo: text set from code or loaded with the form is where undo starts, so Ctrl+Z no longer empties a pre-filled field. (#156)TTyDateTimePicker: moving with the arrow keys in the drop-down calendar no longer changes the value; a click or Enter does, and Esc after that still goes back.MinDateandMaxDatelimit by date, so a time on theMaxDateday stays. (#160)- Menus: a menu taller than the work area scrolls;
AutoLineReduction(the default) drops separators at the ends and in a row, always on Lazarus 3.x, which has no such property; opening a submenu fires its item'sOnClick. (#175) TTyRibbon: KeyTips show and hide on a single press of Alt, as in Office, and no longer touch the form'sKeyPreviewandOnKeyDown. The File tab has a KeyTip too. (#177)TTyBalloonHintandTTyNotificationno longer take the keyboard focus when they appear. (#178)TTyRating.Valuerounds to whole stars, or half stars withAllowHalf, with halves going up: 2.5 stars is 3. (#181)TTyComboBoxtakes one Tab stop. In the open list, Up and Down move the highlight, Enter, Tab and F4 pick it, and Esc does not. (#161)- With
goTabs, Tab at the last cell (Shift+Tab at the first) leaves the grid, as in LCL. (#139) - Properties that cannot act on a control are hidden in the designer:
CharCaseon numeric edits,MaxLength,CharCaseandReadOnlyon pick-only combo boxes, the shell views'Itemsand the like,ChildSizingon text inputs, and the generatedItemsofTTyFilterComboBoxandTTyShellComboBox. Forms that set them still open. (#130, #163, #167, #192) - A form saved with 3.0.4 may not open or read back fully in an earlier 3.0.x if a
TTyValueListEditorhas rows, aTTyFontListBoxhas a font selected, or the title bar pins its button width. (#152, #167)
Fixed
- Crashes after freeing an image list, a scroll box's content, a ribbon group or a cool band's control. (#136)
- Crashes when
Itemschange during a click, or under a node or line a control still holds (radio and check groups, tree select, tree, memo). (#137) - Gauges and meters raised an exception on every paint when
ValueFormathad no float specifier. (#138) TTyTrackBarhung while painting with a large range andFrequency= 1. (#187)- On a sorted, filtered or grouped grid or one with hidden rows, the arrow and page keys, Enter and the fill handle landed on the wrong rows; Ctrl+Home and Ctrl+End missed the first and last row; Tab and Enter did not reach the next cell while editing. (#139)
- Grid cut, editors and
Cellswrites lost or changed data: Ctrl+X cleared cells it had not copied, opening an editor and leaving it rewrote the cell, and aCellswrite outside the grid raised nothing. (#140) - List views, tree views and shell lists lost or moved the selection and the user's changes when the items changed. (#141)
- Values set in the designer were lost or changed when the form was reopened (
Cursor,Alignment,ExpandedHeight, a saved multi-selection, columnPositionandWidthand others). (#108, #152) - A control's
Font.Sizeand a container'sFontfor its children lost to the theme. (#112) - Text in list rows, grid cells, tabs, headers, segments, gauges and charts ignored the control's
FontandStyleOverride. (#113) AutoSize := Truedid nothing on 67 controls, and some did not fit again after a theme change. (#114)BorderWidthonly worked onTTyPanel. (#115)- Disabled controls, and the children of a disabled container, looked enabled. (#118)
- Controls did not lay out again after a theme, font or
StyleOverridechange. (#146) - A one-property additive rule erased a control the theme leaves to the built-in layer. (#106)
- Children covered the frame, rounded corners and separator lines of panels, page controls, cards, group boxes and others. (#133)
- Controls on hidden pages answered Alt+key, and a few controls handled it wrongly. (#142)
- Clicks took the focus with
TabStop = False; the menu bar took the focus from an edit, and F10 now opens its first menu; some focusable controls ignored the keyboard. (#143) - Enter and Esc were swallowed, so the form's default and cancel buttons did not respond. (#144)
- Events fired while a form was loading or being destroyed. (#145)
- Drags kept going after the mouse capture was lost. (#147)
- Pop-ups were placed against the primary monitor only, and opened off screen on another one. (#148)
- Animation timers kept running while hidden and in the designer, and
TTyAnalogClock.Timewas saved in the form. (#149) - Text...
v3.0.3
A bug-fix release for 3.0, mostly for macOS: sharp drawing on Retina screens, the system's window frame, and building the macOS version with Lazarus 3.x.
Changed
- On macOS a
TTyFormwindow now uses the system's window frame: rounded corners, the shadow, the traffic-light buttons, resizing from the edges, tiling and zoom are all the system's. SetTTyTitleBar.MacTrafficLightsto False for the title bar's own drawn buttons. (#80, #89) - On a macOS Retina screen a
TTyPainterlayer is twice the control's size. Code that works onBitmapdirectly (FillRect,PutImageand so on) inOnPaintSurface,OnDrawCelland the like converts control coordinates to layer pixels withDev(); see the events documentation.TyDeviceScaleRendering := Falsetakes all drawing back to one times. Windows and Linux are not affected. (#83) - The Online Package Manager no longer lists GTK3 as a supported widgetset: LCL-GTK3 still has problems the library cannot work around. Building for GTK3 from source still works; see the known issues. (#95)
Fixed
- Text and graphics were blurry on macOS Retina screens. (#83, #93)
- Dark text came out too heavy on macOS. (#91)
- On Windows, control text was greyer and softer than the system's own. (#90)
- A control's
Fontname, bold, italic, underline, strikeout and colour had no effect (withParentFontFalse). They are now laid over the theme's style;StyleOverridestill wins. (#92) - A
TMainMenuin aTTyForm'sMenuput a native menu bar on the window on Windows and made it taller.TTyFormno longer uses the inheritedMenu: the Object Inspector does not show it, the designer does not set it when aTMainMenuis dropped, and one already set is taken out of it with its shortcuts still working. Use aTTyMenuBarand the form'sMenuBarfor the window's menu. (#78) - The slider of
TTyTrackEditand the buttons ofTTyComboEdit,TTyURLEdit,TTyCalcEditand the like showed the text I-beam. (#84) - Scrolling a grid left a gap in its left border. (#86)
- With
WordWrapoff,TTyMemocould fall short of the end of a line with Arabic, Devanagari, combining marks or other text shaped as a run when scrolled sideways. (#77) - Building the macOS version with Lazarus 3.x failed, also for projects that compile the library from source. (#81, #88)
- Some examples failed to build on macOS with an FPC internal error (DWARF3). (#87)
- Building the GTK3 version with a released Lazarus (before 4.99) failed. (#82)
Full changelog: CHANGELOG.en.md
v3.0.2
A bug-fix release for 3.0.
Changed
- A standalone
TTyScrollBarno longer takes the keyboard focus by default:TabStopnow defaults to False, so the bar is not in the Tab order and a click does not focus it; setTabStop := Truefor the previous behaviour (Tab stop, click to focus, arrow and page keys). (#56)
Fixed
- The built-in skins restyled only a few controls such as buttons and edits; tabs, grids, lists, trees, menus, scroll bars and the rest kept the default theme's rounded shapes. (#47)
TTyPageControlandTTyTabSettabs at the bottom, left or right kept their rounded corners on top. (#45)- A
linear-gradientwith two stops ignored their positions. (#49) - A left-aligned title bar caption jumped past the controls after it when the window was widened. (#50)
TTyRibbonQuickAccess.AddButtonshowed its buttons in reverse order, the last one added on the left. (#51)- Selected
TTyStringGridcells kept the normal dark text, hard to read on a dark accent. (#46) - The
TTyStringGridcell editor stayed where it was when the grid scrolled or a column or row was resized, and a header sort dropped a value that had failedOnValidateCell. (#48) - Up/Down while editing a
TTyStringGridcell or a header filter moved the keyboard focus to the scroll bar. (#52) TTyStringGridPageUp/PageDown always moved 10 rows instead of a page. (#57)- Up/Down on a
TTyStringGridpick-list cell sent the focus out of the grid and changed the cell to the next item. (#59) - With row selection, or a range selected,
TTyStringGriddid not show which cell the cursor was on. (#60) OnMouseWheel,OnMouseWheelUpandOnMouseWheelDownnever fired onTTyStringGridandTTyDrawGrid, nor onTTyImageViewwith a picture loaded. (#62)- Typing on a
TTyStringGridcell lost the first key in every editor but the text editor: spin, memo, calculator, mask, date and pick-list cells. (#64) - A number typed into a
TTyStringGridspin cell was lost when the edit ended. (#66) - Ending an edit in a
TTyStringGridmask cell raised an error, and a value that did not fill the mask, an untouched one included, was written anyway; it is now refused with a message and only Esc leaves the cell. (#67, #69) - Grid columns moved through
Index(Move Up / Move Down in the collection editor) left their cells behind and went back to the old order on the next load. (#70) - Without
toFullRowSelect, a selectedTTyTreeViewnode highlighted the whole row over the expand button and tree lines; only the caption is highlighted now. (#71) - In a multi-select
TTyTreeView, PgUp/PgDn, Left/Right, type-to-find, a click in the indent and a right click moved the focus without updating the selection, andSelectedCountdrifted; Shift extended the range with Up/Down only. (#72) toAutoTristateTrackinginTTyTreeViewmissed children made later and ignoredCheckStateandCheckedset from code. (#73)SelectAllon a single-selectTTyTreeViewselected every node. (#74)- Existing
TTyTreeViewrows kept their height whenDefaultNodeHeight, the density ortoVariableNodeHeightchanged. (#75) - With rows of different heights,
TTyTreeViewPgUp/PgDn skipped several pages at once. (#76) - The
TTyListViewrename box closed the moment it opened. (#54) - The scroll bars that grids, list boxes, list views, trees,
TTyMemoand scroll boxes create for themselves could take the keyboard focus, so one click took it from the control. (#55) TTyMemo.Textcame back with an extra trailing line break, andLines.LoadFromFilefollowed bySaveToFilechanged the file's final line break and line-break style. (#58)- The
TTyImageViewwheel zoom did not keep the pointer's spot in place, and the wheel did nothing in theTTyCascaderdrop-down. (#63) - The "more…" row and colour dialog title of the
TTyValueListEditorcolour drop-down, and theTTyRibbonoverflow button hint, showed Chinese in any language. (#68)
Performance
TTyMemowithWordWrapoff loads large texts much faster: 57 000 lines in under half a second instead of about 50 seconds. (#77)
Full changelog: CHANGELOG.en.md
v3.0.1
A bug-fix release for 3.0.
Added
TTySpinEdit/TTyFloatSpinEditup/down buttons: the pointer turns into an arrow over them, they light up on hover and press, and holding one keeps stepping. (#12)OnHelpClickedonTTyFindDialog/TTyReplaceDialog: withfrShowHelpinOptionsthe dialog shows a Help button that fires it. (#30)
Changed
TTyColorButton.DialogCaptionandTTyColorComboBox.MoreCaptiondefault to empty, meaning the library's own text, translated with the application; the newDialogTitleandMoreTextreturn the text actually shown. (#41)TTyColorBox/TTyColorListBoxno longer writeItemsto the form file and rebuild them fromStyleon load; for a palette of your own, usecbCustomColorswithOnGetColors, orAddColorat run time. (#20)TTyFontComboBox/TTyFontListBoxno longer writeItemsto the form file and refill them from this machine's fonts on load. (#26)TyEdit.embeddedhas no padding in the built-in themes; a custom theme that defines it should addpadding: 0too. (#39)
Fixed
- The packages failed to build on Lazarus 3.x. (#3)
- A project made from the "TyControls Application" template did not show at run time the built-in theme picked in the designer; a project made with 3.0.0 needs the two lines described in the issue. (#10)
- With
AutoSizeon,TTyCheckBox,TTyRadioButton,TTyTag,TTyLabelandTTyColorButtoncame out too narrow and cut off or ellipsised the end of their caption. (#11) TTyFloatSpinEdit's up/down buttons were smaller thanTTySpinEdit's. (#17)- An editable
TTyComboBoxat its default height cut off the descenders of g, y, p and the like, and set its text further right than a non-editable one. (#39) - An editable
TTyComboBoxwhoseItemIndexwas set in code showed an empty field, and picking that row from the list did not fill it either. (#43) - A read-only
TTyDateTimePickercould still change its value through the dropdown calendar. (#35) TTyCurrencyEditlost or corrupted its value when the currency symbol contained a dot or a digit (Fr.,kr.,US$1). (#38)- After scrolling,
TTyTreeViewpainted rows over its header, and the last rows could not be scrolled into view. (#19) - Ellipsising a very long text (hundreds of lines) nearly froze; a multi-line text in a single-line place now shows its first line. (#18)
- Every
TTyStringGridleaked two string lists when freed. (#16) - Freeing a
TTyCoolBarwhile its form was open raised an access violation. (#15) - A
TTyColorBox/TTyColorListBoxread back from a form showed black swatches and lost its selected colour. (#20) TTyFontComboBox/TTyFontListBoxwrote the machine's whole font list into the form file, so another machine listed the first machine's fonts. (#26)- On Windows the font combo box, font list box and font dialog listed every CJK font twice, once as a vertical '@' alias that draws its glyphs on their side. (#31)
TTyRibbon/TTyPageControl: a page moved away, or freed by a different owner, stayed in the page list. (#21)- A
TTyRibbonsaved minimised expanded to just its tab strip after being read back. (#23) - A
TTyFormlost its content surface after being read if the surface had been renamed. (#22) - Changing an icon font after a
TTyCharImage/TTyRibbonGallerythat used it was freed raised an access violation. (#24) - Hints, balloon hints, popup menus, grids and the native styler kept pointing at a referenced component after it was freed on another form. (#25)
- File dialogs ignored
fdoPathMustExist, and checkedfdoFileMustExistonly for one name in an open dialog. (#29) - File dialogs asked
OnCanClosebefore checking the name, so the dialog could stay open afterOnCanClosesaid yes. (#32) - The
frHide*,frDisable*andfrShowHelpoptions ofTTyFindDialog/TTyReplaceDialoghad no effect. (#30) Description,Prompt,EmptyTextand other text properties were never translated in a translated application. (#33)TTyColorButton's dialog title andTTyColorComboBox's "More…" row stayed in English in a translated application. (#41)- In a Chinese UI, the messages for a broken theme were in English, and the font dialog's preview showed no Chinese characters. (#44)
- Gradient and nine-slice backgrounds left some fields uninitialised: the same rule could resolve differently twice, and glass with
glass-blurbut noglass-tinttook a random tint. (#40) - Glass lost its tint when a
.tycssrule wroteglass-tintbeforebackground, or when a later rule or aStyleOverridechanged only the background. (#42) - The tycss reference described
padding,alpha()and gradient stops wrongly. (#13)
Full changelog: CHANGELOG.en.md
v3.0.0
TyControls 3.0, the first stable release. Only the changes below since RC3; everything that changed from 2.2 to 3.0 is in the 3.0.0-Beta through 3.0.0-RC3 sections.
Added
- A gallery (docs/gallery.en.md): every example and every tab page in light and dark, and all built-in themes side by side.
Fixed
- On Windows with a non-default ClearType contrast, light text on dark themes came out lighter than the text Windows draws.
- The grid example's tab captions lost their
&.
Performance
- Text draws faster on Windows: text-heavy controls such as the grid and the memo take about a third less time for their first paint.
Full changelog, 3.0.0-Beta through RC3 included: CHANGELOG.en.md
v3.0.0-RC3
Fixes a batch of layout errors under high-DPI scaling (150%, 175%; #2) and blurry text on Windows. Still a release candidate: if nothing new comes in, this content becomes 3.0.0 final.
Changed
- Text on Windows advances by whole pixels: in a Chinese font with no bold face of its own, bold text is 1 px wider per character, so a button with a hardcoded width may need widening or
AutoSize.
Fixed
- Text in every control on Windows looked softer and lighter than the text Windows draws; it is now as crisp and as heavy as the system's ClearType, without the colour fringes.
- At 150% and 175% scaling, text was measured at twice the DPI: labels spread their lines too far apart and wrapped early, and buttons and other controls came out taller and wider than designed, so rows of them overlapped. Controls created in code were affected too.
- At high DPI, a control with
AutoSizeon scaled in one direction only: a button's height and a wrapping label's width stayed at 100%, and the label wrapped into twice as many lines. - A tool bar's
Indent/ButtonSpacing/ButtonHeight/ButtonWidth,TTyToolBarEx's overflow button and flyout, theSpacingof tool group, grid and relative panels, a status panel'sWidthand a splitter'sMinSizedid not scale at high DPI, so children crowded together or ran into each other. TTyCoolBar: at high DPI a band snapped back to its 100% width as soon as its gripper was touched, the seam lagged behind the pointer while dragging, andAutoMaxWidthstopped a band at just over half its content.- The built-in dialogs kept 100% margins, columns and gaps at high DPI: the file dialog's navigation buttons lay over its file list, the font dialog's check boxes over its colour button, the editors' buttons ran out of the window, and messages wrapped at half their width.
TTyStringGrid: the column filter drop-down did not scale at high DPI, and under modern density the filter row's editor opened over the column captions.TTyShellListViewgave most of its width to the first column at high DPI and pushed the last two out of view.- At high DPI, the figure in a gauge or circular progress was too big and stood out of the ring, and the calendar's today ring, the colour grid's selection ring, the list view's sort arrow, the ribbon's key tips, the status bar's grip and the tree's radio mark were drawn too thick or too large.
- The window's resize border, the smallest size a manual resize leaves, the drag threshold on a title bar, and the tolerance of a triple click and of the date picker's check box were only a little over half as forgiving at 175% as at 100%.
v3.0.0-RC2
Every issue reported against the RC has been addressed. Still a release candidate: if nothing new comes in, this content becomes 3.0.0 final.
Added
TTyStringGridinput validation: whenOnValidateCellrefuses a value the editor stays on its cell until the value is fixed or abandoned withEsc; when focus leaves the grid altogether,OnInvalidEditExitdecides whether to abandon or keep the edit (abandon by default). Demonstrated on the grid example's Events page.- The
systemtheme follows the desktop's light/dark scheme and accent on Qt5 / Qt6 builds; GTK builds do not probe and keep the default look.
Changed
TTyTransfer's middle buttons now draw chevrons (>/>>/</<<), the doubled mark reading as one glyph.
Fixed
- Switching to the
systemtheme on Linux raisedList index out of bounds. - Following the system appearance on macOS no longer spawns a subprocess every 750 ms.
- Under modern density and skins with taller buttons (aero, for one), a message dialog's buttons hung out of the bottom strip; the file dialog's navigation buttons overlapped; rows laid out at a fixed stride in the find, font, colour, path, image-collection and structure editors clipped or overlapped.
TTyDateTimePicker's dropdown calendar was hardcoded to the classic 240×220, cramped under modern density and at high DPI; it now follows the theme's row height.TTyStepscentres a horizontal step's title under its own marker, and the connector runs marker to marker.TTyRibbon's large tiles were only an edit box tall under modern density; they now have their own theme size,--ribbon-tile-height.- Windows XP: the system's blue frame on the left, right and bottom edges is gone, and opening a menu or dropdown no longer flashes the system caption over the window.
TTyStringGrid's spin, slider, memo, calculator, pick-list and date editors can now be abandoned withEsc(only the text and mask editors could).- On a controller with a
ThemeName, clearing or replacingStyleOverridehad no effect, and the modern density pack stayed after switching back to classic. TTySparkline's baseline floated up when the minimum was a large positive value.TTyStringGrid: dragging a column divider through the body selected a block of cells; pressing on a divider, or double-clicking it, sorted as well. Sorting now fires on release, and a press on a divider, a release elsewhere, or a column drag does not count as a click.TTyTreeView: double-clicking a column header expanded, collapsed or edited the last node clicked; a header click now sorts only when pressed and released on the same section.WindowState = wsMaximizedset in the designer had no effect at run time (on Windows it could fill the whole monitor over the taskbar; on Linux nothing happened); the first show now maximizes to the work area, exactly as the caption button does.- A title bar's
ShowMinimize/ShowMaximize/ShowCloseset to False in the designer still showed the buttons at start-up; they are now a second gate beside the form'sBorderIcons, either one hides the button, and the form's sync no longer overwrites the bar's setting. - With the maximize button hidden, a title-bar double-click, Aero Snap to the top edge and Win+Up still maximized; if any of
Resizable,biMaximizeinBorderIconsor the bar'sShowMaximizeis off, all of them are now off too, while a maximized window can still restore.
v3.0.0-RC
Added
- Structure editors: double-click (or right-click) a
TTyTreeView,TTyCascader,TTyTreeSelectorTTyListGroupPanelto open a dedicated tree editor — the whole model in one tree, add/delete at any depth, move whole blocks up and down, and edit the selected node's properties right in the Object Inspector. TTyTreeSelectgains publishedItems: the dropdown tree can now be authored at design time and streams with the.lfm(it used to be code-only).TTyListGroupPanel: a design-timeGroupsnested collection (groups first, items under each); anOnItemDblClickevent;Tagon groups and items; whole-sider collapse to an icon rail (Collapsed, with an optional bottom trigger band viaShowCollapseTrigger).TTyTabSheet.TabVisible: hide a page's tab while keeping the page; hide them all and switch from code for the wizard pattern.TTyImageCollection: double-click opens a TImageList-style manager — add, replace, rename, reorder, preview.TTyChartimage export:SaveToFile/SaveToStreamwith PNG / BMP / JPG / TIFF and an explicit-format option.- Design-time tab clicks switch pages on
TTyPageControl,TTyTabSetandTTyRibbon; the PageControl context menu gains a "Show Page" jump list. - Icon browser multi-pick: opened from an image list, each double-click adds the icon and shows its index badge at once, with the window staying open.
Changed
- The license is pinned to the Modified LGPL-2.1 (or later) with the linking exception, matching the LCL.
TTyLucideImageListno longer shows the irrelevantCollection/IconFontproperties in the Object Inspector.
Fixed
- Under themes with padding,
TTyMemoand the list/dropdown family mis-measured their scroll range and row hit-testing, clipping the last line. TTyMemonow wraps mixed Latin/CJK lines at CJK characters instead of spaces only.- Clicking a tab at design time left the mouse in a rubber-band selection; the Object Inspector kept showing a stale
ActivePageIndexafter a switch. - A
TTyTabSet.TabIndexset at design time was lost at run time. - A collapsed
TTyListGroupPanelrail made groups and items indistinguishable: groups now separate with a rule and icon-less rows show their caption's first glyph. TTyCascaderpainted the hover fill over the currently selected option.
Installation
Download TyControls-3.0.0-RC.zip, unpack it, then install tycontrols.lpk (runtime) followed by tycontrols_dt.lpk (design time) in Lazarus and rebuild the IDE. Upgrading from the Beta: overwrite, recompile both packages and rebuild Lazarus — this release contains no breaking changes against the Beta.
v3.0.0-Beta
The first stable release of TyControls, shipping as a public beta. All 162 controls are custom-drawn and styled by .tycss text themes, rendering identically on Windows, Linux, and macOS.
This is a pre-release. Please try it out and report issues.
Added
- Data grid
TTyStringGrid/TTyDrawGrid: frozen rows/columns, million-row virtualization, sorting/filtering/grouping, cell editing, CSV import/export, undo/redo. - 14 modern UI controls: Card, Tag, Badge, Alert, Notification, Popover, Segmented, Pagination, Steps, Breadcrumb, Transfer, TreeSelect, Cascader, Empty.
- Image list overhaul:
TTyVirtualImageListis now a standardTCustomImageList, assignable to any control; icons can be referenced by name; the bundled Lucide icons work as a drop-in image list (TTyLucideImageList); new icon browser dialog. - New
TTyFloatSpinEdit;OnPainton every control;TTyForm.StyleOverride. - New
--success/--warningtheme colors; new antdesign example (an Ant Design Pro-style admin).
Platforms
- macOS: Chinese text rendering fixed (jagged edges, clipped glyphs); the IME candidate window follows the caret.
- GTK2: black panels and modal-dialog dragging fixed.
Breaking changes
Read the Changed section of the CHANGELOG before upgrading. Highlights:
- A
TTyForm's visual controls now live on theSurfacecontent container; existing forms need migrating. TTyMaskEditnow uses the LCL / Delphi mask language.- Several members aligned with the LCL:
TTyMemo.SelStartcounts line breaks,ClearSelectiondeletes text,TTyListBox.ItemsisTStrings, programmaticTTyDateTimePicker.DateTimeno longer firesOnChange, and more.
Installation
Download TyControls-3.0.0-Beta.zip and install tycontrols_dt.lpk in Lazarus (the runtime package installs as a dependency). Requires Lazarus 3.x+, FPC 3.2.2+, and BGRABitmap.
Full details: CHANGELOG.en.md.
v2.2.0
A large feature release. The headline is the dialog subsystem: TTyForm gains complete window chrome
(caption buttons), joined by 11 fully custom-drawn dialog components with matching global functions, IDE
integration and a standalone example. It also adds three small controls (tri-state CheckBox, editable
ComboBox, TTyTabSet), completes the per-control API docs, and fixes many display issues that only surfaced on
a real machine (notably Windows 10).
Added — Dialogs
- TTyForm window chrome — the title bar's minimize / maximize / close buttons are now controlled by
BorderIcons(BorderIcons:=[]removes every button); whether the window is resizable is set by
Resizable. The oldShowMinimize/ShowMaximizeproperties are removed. - 11 fully custom-drawn dialog components — LCL-parity, usable both as drop-in components and via global
functions:- Message box (
TyShowMessage/TyMessageDlg) with full button sets, results and type glyphs. - Input / password / multi-line text (
TyInputQuery/TyPasswordQuery/TyTextQuery). - List value picker and folder picker (New Folder, expandable directory tree).
- Colour picker (HSV + hue bar + RGB / CMYK / Alpha / Hex) and font picker (family / size / style /
colour / preview). - Find / Replace (modeless,
OnFind/OnReplace) and a cancelable progress dialog. - Every dialog supports
OnShow/OnClose/OnCanClose.
- Message box (
- IDE integration — a new TyControls Dialogs palette group, palette icons for all 11 dialogs, a
File > New TyControls Dialog template, and double-click-to-preview in the designer. - Examples — a new standalone dialogs example demonstrating all 11 dialogs; the main demo gains a
dialog grid too.
Added — three small controls
- Tri-state CheckBox —
State/AllowGrayed, with a grayed (indeterminate) glyph. - Editable ComboBox — free text entry (
csDropDown) with prefix autocomplete. - TTyTabSet — a pure tab strip (not a page container).
Added — Documentation
- Per-control API docs for every control (properties / events / states / theme variants / examples),
including the previously-undocumented TreeView, Calendar, DateTimePicker, Splitter, StatusBar, ToolBar,
TabSet, menus and NativeStyler, plus a controls index underdocs/controls/.
Added — example overhaul
- Every single-control example now uses the TTyForm + TTyTitleBar custom frame and shows more of each
control's features. - Seven new dedicated examples: tabset, calendar, datetimepicker, splitter, statusbar, toolbar, menu;
thetabcontrolexample now uses TTyPageControl + TTyTabSheet.
Fixed
- Windows 10 white / transparent windows — windows and containers (dialogs, group boxes, tabs, disabled
controls) no longer bleed glass or white on Windows 10, and no longer wash out white when the window loses
focus. - Washed-out disabled controls — disabled controls no longer look faded or show a white background.
- Side stripes on resizable windows — resizable windows no longer show accent / white vertical stripes on
the left and right edges. - Editable ComboBox typing — typing no longer loses focus or characters, the autocomplete popup no longer
flickers, and clicking a suggestion fills in the correct value. - Tab scroll arrows — with many tabs, the left / right scroll arrows no longer cover the first / last tab.
- Date picker dropdown crash — opening the calendar dropdown no longer crashes when using the global
default theme. - Progress dialog flicker — the progress dialog's text and bar no longer flicker.
- Double-click-maximize crash — double-clicking the title bar to maximize no longer crashes on
multi-monitor / unusual setups. - Chinese UI — on a Chinese OS, message-box buttons show 确定 / 取消 etc., and the dialogs and demo
examples follow the system language. - Example fixes — assorted example startup crashes and display glitches (radiobutton startup crash,
GroupBox title overlap, splitter drag direction, etc.).