In XE4 I could right click a FireMonkey control and select "Edit Custom Style". In XE5 this option has disappeared! Anybody know why? Without it, how do I change something simple like the background colour of a TMemo?

Comments

  1. The main reason - it is support different style on iOS and Android. We cannot run application on Android in iOS style. But when you try to change platform style, automatically we will use it on each target platform.
    If you want to change default style of fm control, you should put on the form style book and make style in it, or load to stylebook platform style and make changes in it. 

    Also very important, When you load platform style in style book, You can want that application instance will not have two copy of platform style (one - system in fmx package and other copy in your style book). For it you should to set flag true in TStylebook.UseStyleManager. In this case style in Style book will replace platform style.

    ReplyDelete
  2. Ярослав Бровин - Thanks for the help, but I have no idea where to begin generating a style from scratch e.g. I need to change the font and background colour of a TMemo. Here's how I'm trying to do it:

    1) Double click the StyleBook component.
    2) Drag a TMemo component from the Tool Palette and drop it under the stylecontainer node in the Structure window.
    3) Change the Font Family of the Style TMemo to "Courier New"
    4) I now want to change the background color, but TMemo doesn't contain a Fill or Background color.

    What do I do now?

    Are there any resources that describe how to use the StyleManager in any depth?

    Thanks for your help.

    ReplyDelete
  3. Paul Thornton Hello,

    You should:
    1. Run special style designer (bin/BitmapStyleDesigner.exe)
    2. Click on Button with sheet and plus -> New Android Style for FireMonkey. After That designer create full android style
    3. Make changes for Memo (change background bitmap)
    4. File->Save As ... (FireMonkey Style (*.Style))
    5. Load this style to StyleBook

    ReplyDelete
  4. Hmmmm, seems to me that the bitmapstyle designer is not much more help - how can you get the default style for a tmemo in FM and edit it?

    ReplyDelete

Post a Comment