Skip to content

Releases

1.2.0

Choose a tag to compare

@mrsw mrsw released this 30 Nov 10:33

Added

  • TS4YHTMLEditor: the new property PlaceholderHTMLStyle chooses how the placeholders are written in the HTML. phsChip (the default) is the element with the look of the chip, as before; phsNone writes only the text of the placeholder, like any other text of the document, with the bold and the colors that the user gave it and without the element and the bold of the chip, so that a template engine fills in the values without leaving the look of a chip around them. The placeholders are found again when the HTML is loaded, and the look in the editor does not change.
  • TS4YTag and TS4YChip: short colored labels with a text, an icon or a picture on the left and a close button on the right, as wide as their content. The tag classifies (Urgent, Draft); the chip is chosen by the user: it reacts to the mouse, to the finger and to the keyboard, can be clicked, chosen alone or in a group of chips (GroupName, as radio buttons), and closed with its button or with Delete. Six kinds (neutral, primary, success, warning, danger, info) give the color, with three variants (filled, tonal, outlined), three shapes and three sizes, the large one on Android and iOS, and the colors of the kinds come from the style. A chosen chip is drawn with a stronger variant and a check mark. OnClose can stop the control from being hidden. MaxWidth limits the width that follows the text, cutting it with an ellipsis. The look comes from a style for each platform, S4YTagStyle and S4YChipStyle, whose parts are seen and changed in the style designer; the style can give the colors of the text of the tonal and outlined variants, to use them on a dark background. The mobile gallery has a page for them, with the group and the edit too.
  • TS4YChipGroup: chips made from a list of texts (Items), of which the user chooses one, some or none (SelectionMode), read with ItemIndex, Selected and SelectedItems, with OnChange; Tab enters the group on one chip and the arrow keys move among the chips. TS4YChipEdit: a text field where each entry becomes a chip, as the recipients of an email: Enter, a separator, the loss of the focus or a paste create the chips, Backspace removes the last one, OnValidate refuses a text or accepts it with another kind (a danger for an invalid address), OnAdd and OnRemove, AllowDuplicates and MaxItems. Both wrap the chips on new lines, with AutoSize and MaxHeight, and scroll with the wheel and the finger when the content is longer; the edit has a style, S4YChipEditStyle. The tag, the chip and the chips of the group and the edit can have a free size (tgzCustom with Height) and their own TextSettings (family, style and, with a style of their own, size of the font) and HorizontalPadding. The group and the edit have a style each (S4YChipGroupStyle, S4YChipEditStyle) with a frame, the space inside it (the part content) and a TS4YChip that is the model of their chips: its size, font, padding, shape and variant are the ones of the chips of the control, as the badge of the TS4YExpander is in its style. The style of the edit also has a TEdit that is the model of its text field, with its own font.
  • TS4YPopover: a popover, a box with an arrow shown next to a control, that holds a frame of the application with what the user needs (a filter, a small form, a menu of choices). The frame is an ordinary frame, designed in the designer of the frames, outside the form; if it wants to know the popover and what happens to it (it opened, it is about to close, it closed) it implements the interface IS4YPopoverContent. The header of the box, a Title and a close button (ShowCloseButton), is set in the popover. The popover is a component with no control in the form: ContentClass (or OnCreateContent) gives the frame, and it opens from the code, where you choose, with Open(Control), OpenAt(Form, Point) or Toggle(Control), so that nothing is attached to the events of the controls. The same popover can open for several controls. The box is shown in a layer over the form, below the control, above it or on the sides (Placement), moved inside the form with the arrow that points at the control; a click outside closes it and goes no further (CloseOnOutsideClick), Esc closes it on Windows, only one is open at a time, and OnBeforeClose and OnClose give the reason. Animated, AnimationDuration, CacheContent (the frame is kept between the openings) and ShowArrow can be set. The look, with the arrow, the shadow, the header and the close button, comes from a style S4YPopoverStyle for each platform. The layer over the form and the placement are shared with the tooltip. It has been tried on Windows and, in the gallery of the phones, on an Android device.
  • TS4YTooltip: the tooltips of the application, in place of the native tooltip of the platform: a box with an arrow, a title and a text that shows the Hint of the controls. One component, in a form, a frame or a data module (or made in the code with Application as owner), is enough for all the controls; they need no other setting. The hint can be Title|Text, or only the text. The tooltip takes Application.OnHint and passes the call on to the handler that was there, uses Hint, ShowHint, ParentShowHint and Application.ShowHint as every tooltip, and waits the delay of the platform (ShowDelay; on Windows the double click time). The box is shown in a layer over the form, below the control, above it if there is no room, or on the sides (Placement), against the control or against the mouse cursor (Anchor); it is moved inside the form and the arrow keeps pointing at the control. MaxWidth, AutoHideDelay, ShowArrow, Animated and AnimationDuration can be set, and OnBeforeShow changes the texts or cancels the tooltip. The look, with the arrow, comes from a style S4YTooltipStyle for each platform. On Windows the native tooltip is turned off and the tooltip hides when a button of the mouse or Esc is pressed. The native tooltip of macOS is not turned off yet, and Android and iOS have no tooltips yet.
  • TS4YRating: a rating made of stars, to show a value or to let the user choose it. Value goes from 0 to MaxValue (5 by default) and can have decimals: the last star that has a part of the value is filled in proportion, and a value set by the code is never rounded. Step is how the user chooses it: whole stars (1), half stars (0.5), tenths (0.1) or any value (0), following the pointer exactly. When the value changes the stars fill smoothly, one after the other (AnimationDuration); while the user drags the value follows the pointer with no delay. The user chooses with the mouse (with a preview of where the click would arrive), with the finger by tapping and dragging, and with the keyboard (the arrows, Home, End and the digits); touching again the chosen value clears it (AllowClear). ReadOnly, StarSize, Spacing, FilledColor and EmptyColor can be set, and the size follows the stars (AutoSize). The shape of the star, its size and the colors come from a style S4YRatingStyle for each platform, so another path in the style gives another shape. The value can be bound with the LiveBindings, as the one of a track bar: a link to a field gives the value to the rating, and the change of the user goes to the field at once with Track or when the rating loses the focus, with the dataset in edit mode. The mobile gallery has a page for it.
  • TS4YSkeleton: a skeleton, grey shapes with a band of light that crosses them, that take the place of the content of a container (Target) while its data are loaded, shown and hidden with Active and a fade. The shapes are made from the controls of the container: a label gets lines of text, as many as its text takes and the last one shorter, a circle or an avatar a circle, any other control without controls inside a rounded rectangle, a container the shapes of its controls; the controls are not touched, the skeleton is drawn by a cover put over the target, which does not disturb a container that lays out its controls (the flexbox). Rules and ClassRules choose another shape for a control or for a class, OnGetShape does it from the code, and ManualShapes add shapes tied to a control, in pixels or in percent of its size, so that they follow it. The shimmer is the same for all the skeletons, so that the light is in step; there is also a pulse and no animation. The colors follow the background, light or dark, until they are set. A command of the context menu of the component, Show preview, draws the skeleton still over the target in the form designer, to set the rules and the shapes while they are seen; the preview is not saved in the form. The mobile gallery has a page for it.
  • TS4YSnackbar: a message over the form with a kind (information, success, warning, danger) that gives it an icon, drawn as a path, and a colored bar, and an optional action such as Undo, a text button that runs your code, fires OnAction and closes the message. Show returns the id of the message and Close(Id) closes it, also while it waits in the queue; OnClose tells the id and why it went (its time was over, the user closed it, the user pressed the action, the code closed it). A tap or a click closes the message, a close button is shown on a desktop (CloseButton), and on a phone the message can be dragged sideways to dismiss it. On Android the message is announced to TalkBack. It shares the layer, the queue, the positions and the animations of TS4YToast; the look comes from a style S4YSnackbarStyle for each platform, whose colors and icons can be changed in the style designer. The mobile gallery has a page for it.
  • TS4YToast: a toast, a short text message that appears over the form, stays for a few seconds and goes away by itself, shown with Show or, without a component on the form, with the class procedure Notify. The messages ...
Read more

1.0.0

Choose a tag to compare

@mrsw mrsw released this 29 Oct 14:15

First public release.

Added

  • TS4YHTMLEditor: WYSIWYG HTML editor with formatting, lists, tables, images, links, placeholders, find and replace.
  • TS4YFlexBox and TS4YFlexItem: container that lays out its items with the CSS Flexbox model (W3C Level 1).
  • TS4YBlockScrollBox: scroll box that stacks its children as the blocks of the CSS flow; a TS4YFlexBox in it behaves as a block of a web page.
  • TS4YBadge: badge like the notification counter of a smartphone icon, with a number or a short text.
  • TS4YExpander: collapsible panel with an icon in the header, a height animation, a click on the whole header and a badge counter.
  • TS4YColorSelector: foreground and background color swatches, like in the drawing programs.
  • Runtime and design-time packages for Delphi 11, 12 and 13, also for the 64-bit IDE of Delphi 12.3 and newer.
  • The IDE splash screen and About box show the version of the installed suite.