Repository navigation
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 inputs: AltGr ran shortcuts instead of typing on Polish and similar keyboards, and
OnKeyPresscould 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,HintandShowHint. (#154) TTyMemo: a tab had no width, so tab-separated text ran together. The width is the token--memo-tab-size. (#97)TTyMemofired noOnChangefor a change throughLines. (#110)- Numeric edits accepted pasted letters, and
TTyEdit.Text :=ignoredCharCase. (#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,SelTextand the IME could break the mask, and the focus did not return after a failed validation. (#158)- Numeric edits: malformed text became 0,
OnChangefired on every focus change, and buttons, sliders and menus changed the value while read-only. (#159) TTySpinEditstepped from the old value, not the one typed, andTTyUpDownfiredOnChangetwice for a click after typing. (#160)TTySpinEdit: tabbing in and typing added to the value instead of replacing it. (#189)TTyCalcEditandTTyCalcCurrencyEditwrote the value back however the calculator closed, so Esc and a click away set the field to 0. (#191)- Buttons:
DefaultandCancelset in code had no effect and the default button did not look like one;TTySpeedButtongroups andAllowAllUpdiffered from LCL;TTyColorButtonclosed the form even when its dialog was cancelled. (#119) - Combo boxes:
ItemHeightset 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 followText. (#120) TTyColorComboBoxlost its "More..." row on a form, and the swatch properties andcbIncludeNonedid 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) TTyTreeSelectandTTyCascadershowed no text after a pick, and a reopen guard blockedDropDownfrom code. (#162)TTyColorComboBoxchanged the value twice for "More...",TTyFilterComboBoxdid not filter after loading, andTTyShellComboBoxwas empty without aDirectory. (#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 withMultiSelect, inserts and deletes moved the selection to other rows, and arrow keys cleared it withExtendedSelect = False.TTyOfficeListBoxcould select header rows. (#123) TTyValueListEditor:Sortedlost rows, the splitter and editor did not followScrollWidth, and an open editor still committed afterReadOnlywas set. (#124)TTyListView:Header.SortColumn,SortDirection,AutoSizeIndexandRowSelectdid nothing, editing withMainColumnstill used column 0, andAutoSortalso stopped sorting after item changes. (#125)TTyTreeView: changingEmptyListMessagedid not repaint, andHeader.AutoSizeIndexapplied 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, andItemHeight0, 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,OnPaintTextcould not change the font, and a double-click on the expander toggled once too often. (#166)TTyValueListEditorlost its rows when the form was reopened,TTyTransferdroppedObjectson a move, andTTyListGroupPaneldid not report a click on the selected item. (#167)TTyDrawGrid:OnClickCell,OnRightClickCell,OnCellButtonClickandOnHeaderRightClicknever 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,OnCanSortand 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
UndoLimitwere wrong. (#169) - Grids: a read-only check cell showed 1,
FixedRowscounted 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)
TTyExPanelandTTyPaintPanelcaptions ignoredAlignment,VerticalAlignment,WordWrapandShowAccelChar. (#116)TTyStatusBardid not drawSimpleText, aTTyCoolBarband without a control took no place,TTyListGroupPanelheights lost to the theme, andTTyImageViewzoom limits did not hold. (#128)TTyCoolBar: vertical bands all came outBandHeightlong. (#131)TTyCoolBar: band captions (ShowText) were never drawn. (#132)- Radio, check and button groups moved the selection to other items when
Itemschanged;ItemIndexon 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
CheckedandGroupIndex, 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 := nilwas wrong. A tab set did not report the removal of its selected tab. (#173) TTyExPanelkept collapsed children in the Tab order, a group box'sTextwas its name, and card hover, the splitter's range,TTyGridPanel,TTyRelativePaneland 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
Closewere wrong. (#175) - A menu's
BannerCaptionwas off-centre and partly cut off. (#201) TTyToolBarExbrought 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
MaxWidthand the DPI of the monitor they were on. (#178) TTyBalloonHintandTTyPopover: the arrow slid into the rounded corner. (#134)TTyBalloonHint.Controllersized 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
OnCanCloseon cancel and did not returnFilterIndex; 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
Kindchanged; arrow keys across the axis leaked to the form from scroll and track bars; the calendar's arrow keys in its views,MinDateafterMaxDate, the lightness bar's limits and the calculator's focus were wrong. (#180) - Gauges did not clamp
ValuewhenMinorMaxchanged; level meter segments, the sparkline's last point and the pie legend were wrong;TTyHtmlLabeldid not wrap CJK text; glow and shadow labels were clipped; several fixes to images, badges and link labels. (#181) - The month arrows of
TTyCalendarand the drop-down calendar are now the library's own. (#194) TTyValueListEditor:OnEditingDonefired 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)