Repository navigation
Releases
Releases · Soft4You-IT/Soft4YouFMXControlSuite
1.2.0
Added
TS4YHTMLEditor: the new propertyPlaceholderHTMLStylechooses how the placeholders are written in the HTML.phsChip(the default) is the element with the look of the chip, as before;phsNonewrites 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.TS4YTagandTS4YChip: 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.OnClosecan stop the control from being hidden.MaxWidthlimits the width that follows the text, cutting it with an ellipsis. The look comes from a style for each platform,S4YTagStyleandS4YChipStyle, 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 withItemIndex,SelectedandSelectedItems, withOnChange; 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,OnValidaterefuses a text or accepts it with another kind (a danger for an invalid address),OnAddandOnRemove,AllowDuplicatesandMaxItems. Both wrap the chips on new lines, withAutoSizeandMaxHeight, 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 (tgzCustomwithHeight) and their ownTextSettings(family, style and, with a style of their own, size of the font) andHorizontalPadding. The group and the edit have a style each (S4YChipGroupStyle,S4YChipEditStyle) with a frame, the space inside it (the partcontent) and aTS4YChipthat 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 theTS4YExpanderis in its style. The style of the edit also has aTEditthat 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 interfaceIS4YPopoverContent. The header of the box, aTitleand a close button (ShowCloseButton), is set in the popover. The popover is a component with no control in the form:ContentClass(orOnCreateContent) gives the frame, and it opens from the code, where you choose, withOpen(Control),OpenAt(Form, Point)orToggle(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, andOnBeforeCloseandOnClosegive the reason.Animated,AnimationDuration,CacheContent(the frame is kept between the openings) andShowArrowcan be set. The look, with the arrow, the shadow, the header and the close button, comes from a styleS4YPopoverStylefor 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 theHintof the controls. One component, in a form, a frame or a data module (or made in the code withApplicationas owner), is enough for all the controls; they need no other setting. The hint can beTitle|Text, or only the text. The tooltip takesApplication.OnHintand passes the call on to the handler that was there, usesHint,ShowHint,ParentShowHintandApplication.ShowHintas 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,AnimatedandAnimationDurationcan be set, andOnBeforeShowchanges the texts or cancels the tooltip. The look, with the arrow, comes from a styleS4YTooltipStylefor 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.Valuegoes from 0 toMaxValue(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.Stepis 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,FilledColorandEmptyColorcan be set, and the size follows the stars (AutoSize). The shape of the star, its size and the colors come from a styleS4YRatingStylefor 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 withTrackor 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 withActiveand 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).RulesandClassRuleschoose another shape for a control or for a class,OnGetShapedoes it from the code, andManualShapesadd 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, firesOnActionand closes the message.Showreturns the id of the message andClose(Id)closes it, also while it waits in the queue;OnClosetells 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 ofTS4YToast; the look comes from a styleS4YSnackbarStylefor 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 withShowor, without a component on the form, with the class procedureNotify. The messages ...
1.0.0
First public release.
Added
TS4YHTMLEditor: WYSIWYG HTML editor with formatting, lists, tables, images, links, placeholders, find and replace.TS4YFlexBoxandTS4YFlexItem: 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; aTS4YFlexBoxin 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.