Skip to content

v3.0.4

Latest

Choose a tag to compare

@ACTom ACTom released this 04 Nov 13:18
· 2810 commits to main since this release

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 StyleOverride can 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-field and --field-drop-pad. (#102, #103)
  • GlyphKind has a new value tgNone, 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 AutoSize control 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)
  • TTyRibbonQuickAccess honours Indent and Spacing. With the defaults, buttons move 3 px right and sit 2 px further apart. (#117)
  • OnClick on TTyCheckBox and TTyRadioButton fires when Checked changes, from code too, as in LCL, and not for a click on a radio button already checked. TTyRadioGroup.OnClick fires when ItemIndex changes. (#188)
  • # in a TTyMaskEdit mask is a digit or sign that may be left out, as in LCL. A ## from 2.x is now optional; write 00 to require the digits. (#193)
  • A TTyForm maximized from its title bar reports wsMaximized in WindowState and fires OnWindowStateChange. (#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. MinDate and MaxDate limit by date, so a time on the MaxDate day 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's OnClick. (#175)
  • TTyRibbon: KeyTips show and hide on a single press of Alt, as in Office, and no longer touch the form's KeyPreview and OnKeyDown. The File tab has a KeyTip too. (#177)
  • TTyBalloonHint and TTyNotification no longer take the keyboard focus when they appear. (#178)
  • TTyRating.Value rounds to whole stars, or half stars with AllowHalf, with halves going up: 2.5 stars is 3. (#181)
  • TTyComboBox takes 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: CharCase on numeric edits, MaxLength, CharCase and ReadOnly on pick-only combo boxes, the shell views' Items and the like, ChildSizing on text inputs, and the generated Items of TTyFilterComboBox and TTyShellComboBox. 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 TTyValueListEditor has rows, a TTyFontListBox has 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 Items change 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 ValueFormat had no float specifier. (#138)
  • TTyTrackBar hung while painting with a large range and Frequency = 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 Cells writes lost or changed data: Ctrl+X cleared cells it had not copied, opening an editor and leaving it rewrote the cell, and a Cells write 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, column Position and Width and others). (#108, #152)
  • A control's Font.Size and a container's Font for its children lost to the theme. (#112)
  • Text in list rows, grid cells, tabs, headers, segments, gauges and charts ignored the control's Font and StyleOverride. (#113)
  • AutoSize := True did nothing on 67 controls, and some did not fit again after a theme change. (#114)
  • BorderWidth only worked on TTyPanel. (#115)
  • Disabled controls, and the children of a disabled container, looked enabled. (#118)
  • Controls did not lay out again after a theme, font or StyleOverride change. (#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.Time was saved in the form. (#149)
  • Text inputs: AltGr ran shortcuts instead of typing on Polish and similar keyboards, and OnKeyPress could not filter the typed character. (#150)
  • Buttons and check boxes: a held Space or Enter clicked repeatedly, and a quick second click was lost. (#151)
  • Right-to-left: drop-downs, list rows, panel headers, popup menus and some labels did not mirror. (#153)
  • Controls overwrote the application's Cursor, Hint and ShowHint. (#154)
  • TTyMemo: a tab had no width, so tab-separated text ran together. The width is the token --memo-tab-size. (#97)
  • TTyMemo fired no OnChange for a change through Lines. (#110)
  • Numeric edits accepted pasted letters, and TTyEdit.Text := ignored CharCase. (#122)
  • TTyEdit: Shift+Del, Shift+Ins, Ctrl+Ins, Ctrl+Home, Ctrl+End, undo while read-only, CharCase, and copy and cut in a password field differed from LCL. (#156)
  • TTyMemo: ClearSelection, Clear, MaxLength, Page Up and Down, drag-select scrolling and the wheel's line count were wrong. (#157)
  • TTyMaskEdit: cut, paste, SelText and the IME could break the mask, and the focus did not return after a failed validation. (#158)
  • Numeric edits: malformed text became 0, OnChange fired on every focus change, and buttons, sliders and menus changed the value while read-only. (#159)
  • TTySpinEdit stepped from the old value, not the one typed, and TTyUpDown fired OnChange twice for a click after typing. (#160)
  • TTySpinEdit: tabbing in and typing added to the value instead of replacing it. (#189)
  • TTyCalcEdit and TTyCalcCurrencyEdit wrote the value back however the calculator closed, so Esc and a click away set the field to 0. (#191)
  • Buttons: Default and Cancel set in code had no effect and the default button did not look like one; TTySpeedButton groups and AllowAllUp differed from LCL; TTyColorButton closed the form even when its dialog was cancelled. (#119)
  • Combo boxes: ItemHeight set back to 0 kept its height, Text := did not select the matching item, renaming the selected item cleared the selection, and the list highlight did not follow Text. (#120)
  • TTyColorComboBox lost its "More..." row on a form, and the swatch properties and cbIncludeNone did nothing. (#121)
  • Combo boxes: keys in the list and the field, CloseUp, the selection after item changes and the text of derived combo boxes were wrong. (#161)
  • TTyTreeSelect and TTyCascader showed no text after a pick, and a reopen guard blocked DropDown from code. (#162)
  • TTyColorComboBox changed the value twice for "More...", TTyFilterComboBox did not filter after loading, and TTyShellComboBox was empty without a Directory. (#163)
  • List view report rows: the icon ignored --listview-text-margin. (#98)
  • The tree's main column had no leading inset. (#99)
  • Tree lines ran through the expander. (#101)
  • List boxes: ItemIndex := selected nothing with MultiSelect, inserts and deletes moved the selection to other rows, and arrow keys cleared it with ExtendedSelect = False. TTyOfficeListBox could select header rows. (#123)
  • TTyValueListEditor: Sorted lost rows, the splitter and editor did not follow ScrollWidth, and an open editor still committed after ReadOnly was set. (#124)
  • TTyListView: Header.SortColumn, SortDirection, AutoSizeIndex and RowSelect did nothing, editing with MainColumn still used column 0, and AutoSort also stopped sorting after item changes. (#125)
  • TTyTreeView: changing EmptyListMessage did not repaint, and Header.AutoSizeIndex applied only on resize. (#126)
  • Header options on list views, trees and grids (hover, column drag, click, sort switches, auto-spring, images, alignment) did nothing, and a grid header click also fired for a drag or a filter button. (#155)
  • List boxes: a keyboard selection fired no OnClick, and ItemHeight 0, type-to-find, drag-select and horizontal scrolling were wrong. (#164)
  • TTyListView: a right-click did not select, hover hit the wrong row in groups, the cut and disabled looks, horizontal scrolling and rename events were wrong, and the shell tree and list were not in step. (#165)
  • TTyTreeView: Insert collapsed the node, a node expanded unsorted, OnPaintText could not change the font, and a double-click on the expander toggled once too often. (#166)
  • TTyValueListEditor lost its rows when the form was reopened, TTyTransfer dropped Objects on a move, and TTyListGroupPanel did not report a click on the selected item. (#167)
  • TTyDrawGrid: OnClickCell, OnRightClickCell, OnCellButtonClick and OnHeaderRightClick never fired. (#109)
  • TTyStringGrid, TTyDrawGrid: a dragged column stayed where it was on screen. (#111)
  • Grids: MainColumn, AutoSizeIndex, IndicatorWidth, ShowIndicator, HeaderGroups, DefaultColWidth, sorting and width limits did nothing or did not update. (#127)
  • Grids: double-click, keyboard selection, OnScrollHint, OnEditChange, OnCanEditCell, OnCanSort and the end-of-resize events fired wrongly or not at all. (#168)
  • Grids: inserting or deleting columns and rows misplaced sort keys, the cursor and header groups; sort settings, footers, find and replace, CSV load, Esc in the filter row, Delete and UndoLimit were wrong. (#169)
  • Grids: a read-only check cell showed 1, FixedRows counted twice in the scroll range, the horizontal wheel was wrong, and changing a column colour at run time did not repaint. (#170)
  • Grid text did not match other controls': heavier on dark themes, lighter on light ones, and without ClearType. (#198)
  • TTyExPanel and TTyPaintPanel captions ignored Alignment, VerticalAlignment, WordWrap and ShowAccelChar. (#116)
  • TTyStatusBar did not draw SimpleText, a TTyCoolBar band without a control took no place, TTyListGroupPanel heights lost to the theme, and TTyImageView zoom limits did not hold. (#128)
  • TTyCoolBar: vertical bands all came out BandHeight long. (#131)
  • TTyCoolBar: band captions (ShowText) were never drawn. (#132)
  • Radio, check and button groups moved the selection to other items when Items changed; ItemIndex on a multi-select button group was wrong; radio buttons did not update when moved to another group. (#171)
  • Check boxes, radio buttons, toggle switches and speed buttons did not follow an Action's Checked and GroupIndex, and a toggle switch did not show the Action's caption. (#172)
  • Page controls: moving a page changed the active page, a switch lost the focus, side and multi-line tabs did not reflow, and ActivePage := nil was wrong. A tab set did not report the removal of its selected tab. (#173)
  • TTyExPanel kept collapsed children in the Tab order, a group box's Text was its name, and card hover, the splitter's range, TTyGridPanel, TTyRelativePanel and a scroll box's controller change were wrong. (#174)
  • macOS: drop-downs, menus and popovers opened in a modal dialog showed behind it. (#104)
  • Menus: menu bar updates, actions and Close were wrong. (#175)
  • A menu's BannerCaption was off-centre and partly cut off. (#201)
  • TTyToolBarEx brought hidden buttons back and clipped its rows; tool button menus and the status bar's size grip were wrong; control and cool bars used the control's name as a caption, and cool band width limits did not hold. (#176)
  • Ribbon: the gallery's inline row missed an item picked in its pop-up, arrow keys were wrong in the backstage, and the application menu lost submenus. (#177)
  • Hints ignored MaxWidth and the DPI of the monitor they were on. (#178)
  • TTyBalloonHint and TTyPopover: the arrow slid into the rounded corner. (#134)
  • TTyBalloonHint.Controller sized the balloon but did not paint it. (#135)
  • Dialogs: the dialog took Enter before the focused control, so a memo could not start a new line and Enter on No or Cancel returned the default button's result; find and replace events and progress were wrong; file dialogs asked OnCanClose on cancel and did not return FilterIndex; folder and value dialogs could be accepted with nothing chosen. (#179)
  • Scroll bars did not repeat while a button was held, sent no end-of-scroll event and kept their size when Kind changed; arrow keys across the axis leaked to the form from scroll and track bars; the calendar's arrow keys in its views, MinDate after MaxDate, the lightness bar's limits and the calculator's focus were wrong. (#180)
  • Gauges did not clamp Value when Min or Max changed; level meter segments, the sparkline's last point and the pie legend were wrong; TTyHtmlLabel did not wrap CJK text; glow and shadow labels were clipped; several fixes to images, badges and link labels. (#181)
  • The month arrows of TTyCalendar and the drop-down calendar are now the library's own. (#194)
  • TTyValueListEditor: OnEditingDone fired when an edit started; Ctrl+Enter now opens the dialog, Alt+Left and Alt+Right expand and collapse, and one click on the ... button opens it. (#195)
  • Scroll bars and bordered controls looked blurry, with borders and rounded fills spread across two pixels. (#196)
  • The header and row fills covered the frame of grids and lists, the whole header turned hover when the mouse was anywhere on a grid, and grid lines covered the selection frame. (#197)
  • On Windows, text in controls without a background (labels, links and others) had no ClearType and looked softer than the rest. (#200)
  • Expand, drop-down and submenu arrows had wrong shapes, were oversized and blurred; a drop field's arrow sat too close to the border and lost part of its second arm. (#100, #102)
  • Designer: switching off a title bar button hid the one next to it. (#105)

Performance

  • Text-heavy repaints on Windows are faster: a run of text no longer asks the system whether ClearType is on. (#107)