Jump to content

Rollo62

Members
  • Content Count

    1973
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Rollo62

  1. Rollo62

    Change the background color of a TEdit

    Right, I use a separate form for the Styles editing, and preparing a StyleBook component. With that Stylebook, you can copy and paste by the way, you can use them in other Frames etc. too. The nice thing is that the StyleName property is visible project-wide, and can be used everywhere. Once you have a knd of "common stylebook", its possible to reuse this. Unfortunately the Style system is far from easy to use, but thankfully EMBT offered the export as .style in text. If this option would not be there, I would not touch styles either.
  2. Rollo62

    Change the background color of a TEdit

    This is all right, I use it only on more primitive controls. But the style concept of FMX is so much more than only changing PNG images. Its possible to add components, animations, etc. You're right, the existing style elements are sometimes hard to configure, but EMBT has added e.g. the TStyleColor Object to ease at least re.coloring. But for own styles you can do a lot more. Rollo
  3. Rollo62

    Change the background color of a TEdit

    You mean "Edit Custom Style..." will be gone in 10.3, because I still have it stioll available in 10.2.3 ? This would be a major change in possibilities of the style system, from where do you have that information ?
  4. Rollo62

    Change the background color of a TEdit

    Just a fast test ... You can e.g. add a custum style by rightclick on the Edit1. This will open Stylebook, with some automatic naming. I usually use my own names, e.g. with starting "_", to easier find them again in that possible long list of styles. Analyse the control, and add or change what you like. E.g. you can add TRectangle in the style, as I did here. Other controls may have direct access to colors, rectangles, etc. With the added rectangle, you can add a specific name, here "background_rect", and you can find and access this as you wish. ! The Edit1.StyleLookup must of coarse now get the new style name "_myeditstyle", to switch to that. I hope that helps to show one possible options howto customize the styles. Rollo T223_EditStyle.zip
×