Questions tagged [firemonkey-style]

Most firemonkey components are only containers drawn in different styles. The style itself is separated from the control and can be switched at runtime by linking another style resource.

This tag is for questions related to firemonkey style objects or styling. Stylers are stored in style resource objects and can be cascaded and applied to any firemonkey control.

34 questions
12
votes
2 answers

Using TBitmapLinks with the FireMonkey Style Designer

I have been styling FireMonkey controls, but there is one issue that I have been having some real issues with, and that is how to incorporate bitmaps into FireMonkey styles using the FireMonkey Style Designer (and specifically not the Bitmap Style…
Cary Jensen
  • 3,751
  • 3
  • 32
  • 55
8
votes
1 answer

Painting issues with TScaledLayout & custom styles

I'm experiencing painting issues when combining TScaledLayout and custom styles created from the bitmap style designer in fmx. To demonstrate, I loaded the default custom style created by chosing "New style for VCL / FMX" -> "save as .style" in the…
DNR
  • 1,619
  • 2
  • 14
  • 22
5
votes
1 answer

How to access nested style control

I have custom styled FireMonkey control. Its style contains several levels of nested controls. I need to access those controls and change some style properties at run-time. To do that I am using FindStyleResource method. I have no problem in…
Dalija Prasnikar
  • 27,212
  • 44
  • 82
  • 159
4
votes
1 answer

How can I remove the border line from a FireMonkey TListBox control?

I'm learning about FireMonkey styles - my main reference has been here. Everything I've tried with simple labels and shapes has worked fine but I'm now working with a TListBox and trying to do two things: Set the font of items in a TListBox. Remove…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
3
votes
1 answer

Firemonkey TButton style with two different texts

I'm trying to create a virtual keypad, where each button has both a number and a few letters. For example, the number 2 will also have the text ABC next to it, in a smaller font size, and the number 3 will have DEF next to it. I can successfully…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
2
votes
0 answers

Apply Windows native shadow to customized FireMonkey form BorderStyle?

In FireMonkey, I created a custom BorderStyle for the application MainForm (using WindowBorderStyle for the non-client area). Default forms without styling do have a Windows native shadow under their window, for example: But this is not the case…
JvA
  • 21
  • 3
2
votes
0 answers

How to apply DEFAULT style for all the project

I work with VCL and FMX on this application, we are updating pack by pack of the software to FMX. Something I did on the code, changed the STYLE of the application. On the design view, it is the DEFAULT style, without any style edition. However,…
2
votes
1 answer

Custom Firemonkey style - linking properties between control and style?

Delphi XE-6 I am trying to create my own style for a TGroupBox control. I looked at numerous demos and tutorials, but can't seem to figure this one out. How do you make the text from the control become blank and show up on the style's text control…
JakeSays
  • 2,048
  • 8
  • 29
  • 43
2
votes
1 answer

XE7 Firemonkey application get "argument out of range"

I'm making a multi-device application whit Rad Studio XE7. Sometimes when i want save my last modify on a Form, Rad Studio raises an exception "Argument out of range" but don't give me any information on where is the problem. Detail of error report…
2
votes
1 answer

What does the CapInsets property of a FireMonkey TBitmapLink do for a FireMonkey style?

When creating a custom FireMonkey style, you often run into style objects, such as TButtonStyleObject, that include one or more properties (such as TButtonStyleObject.NormalLink) that are collections of TBitmapLinks. Each individual TBitmapLink…
Cary Jensen
  • 3,751
  • 3
  • 32
  • 55
1
vote
0 answers

FMX Styles are not applied

Using Delphi 10.4 Version 27.0.40680.4203 (Sidney), I edited the default style for TButtons, TLabels, and TEdit boxes. My form at design time looks like this: When I compile and run the application (Target Platform: Windows 32-bit) on Windows…
Optimax
  • 1,534
  • 2
  • 16
  • 23
1
vote
2 answers

Transparent Form in firemonkey with a stylebook

I have a application with multiple stylebooks containing styles from delphistyles.com. I want to add a trackbar to allow the user to change the transparency of the form at runtime like you can do in VCL with alphablend. This post: AlphaBlend in…
Adriaan
  • 806
  • 7
  • 24
1
vote
1 answer

delphi How to start FloatAnimation from styled component

here is my style in delphi 10.1 : I like to animate some FloatAnimation (FA_...) onShow (i have a procedure Show) and also when i click the buttons. I didn't find a way to start the animation ? i tried this but it doesn't work obviously…
ffert2907
  • 370
  • 4
  • 16
1
vote
0 answers

Changing Style of TTrackBar makes it`s Tracking disable

I want to change the style of a TTrackBar component. I have added an Image control to TTrackBarHThumb style to show as the thumb button, but now the tracking not working, when I click and drag the thumb button it not move with the mouse cursor. I…
G3ntle
  • 51
  • 1
  • 6
1
vote
2 answers

How to apply a custom style to a custom Firemonkey component using Delphi Seattle

I have a custom Delphi component created for Firemonkey (fmx). I now need to apply my custom style to the component. The style is saved in a resource. Previously this was done in the GetStyleObject method by calling…
Christo
  • 411
  • 7
  • 27
1
2 3