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
1
vote
1 answer

Firemonkey use StylesData to set property of array object in style

I try to set the property of an object when filling a ListBox with ListBoxItems. The object is an ellipse added to the style used by the ListBox. The line of code below raises an…
1
vote
0 answers

Using custom style in Firemonkey makes component disappear?

Dropped TStyleBook on the form and loaded custom style from Embarcadero (not my own) Set Form.StyleBook to that TStyleBook component Drop button on the form and it looks styled Move button around or change any property and button disappears Drop…
vladsfl
  • 617
  • 8
  • 18
1
vote
1 answer

How to extract and replace PNG images in TStyleBook

I have been at it for a week now, and I give up. How do you extract PNG images embedded in a TStyleBook? I tried this genuine solution, but am getting a strange result. The bitmap shown in my form at design and runtime is that of a…
iMan Biglari
  • 4,674
  • 1
  • 38
  • 83
1
vote
0 answers

Access Violation while trying to load FMX style from resources

I'm trying to load a style resource using this code: var Style: TFmxObject = nil; begin {$IFDEF IOS} Style := TStyleStreaming.LoadFromResource(HInstance, 'iphonestyle', RT_RCDATA); // access violation :( {$ENDIF} if Assigned(Style) then …
iMan Biglari
  • 4,674
  • 1
  • 38
  • 83
1
vote
0 answers

Change a style element across all components in Firemonkey

I am modifying the Dark Firemonkey style in XE6 which has a light orange glow around each component. I can individually change the color of the glow manually in each component type but its tedious as there are many different types of components,…
rhody
  • 2,274
  • 2
  • 22
  • 40
0
votes
0 answers

Cannot create a swap chain for 'TCanvasD2D' in Delphi FMX App

I've developed a simple app in Delphi FMX, but occasionally very randomly I get this error in my application. It doesn't happen often, but does happen every now and then: I then simply click on "OK" and continue as normal on the app. It doesn't…
Shaun Roselt
  • 1,650
  • 5
  • 18
  • 44
0
votes
0 answers

How to customize Combobox dropdown List background (trasparet and make it rounded if posible) in delphi 11.3 FMX

I am tring to make a rounded combobox and a the dropdown trasparent (and rounded if posibole ) and so far all i can thik of is that i can put it inside a rectangel and edit the background style of the combobox to trasparent but ... the dropdown…
0
votes
0 answers

Event disappears on button Style designer

I would like to create a personalized style on expander in firemonkey. But when I want to add an event on a button (I replace the checkbox by a button that I have drag and drop from palette), then when I save, the event disappear and is not…
0
votes
0 answers

Temporary lines in objects created at runtime

When I create objects at runtime in FireMonkey, some lines are shown on the sides of the objects. The image below is a TLayout. When I resize the Form or move the mouse, the lines disappear. This happens with TImage, TRectangle, TLayout, and other…
BDuarte
  • 129
  • 11
0
votes
1 answer

Firemonkey styled TMemo does not get focus

I dropped a TMemo and a regular TStyleBook on a Form. I edited the custom style for the TMemo by adding a TRectangle to background so TMemo now has a different background color, and changed the TMemo.StyleLookup property to the actual StyleName, but…
user2383818
  • 709
  • 1
  • 8
  • 19
0
votes
2 answers

How can I stop changing style in firemonkey in ScaleChanged message

I use Firemokey 10.2. In macOS, internally when you move your from from a normal display to a retina display it automatically changes style of the controls. I would like to stop this message which is TScaleChangedMessage. I would appreciate If you…
user1581036
  • 61
  • 1
  • 7
0
votes
0 answers

Error occurs while implementing custom Font in iOs using Firemonkey

I'm using Delphi 10.1 for developing mobile application. And I'm trying to implement the custom font Livingst.ttf for iOS and I followed Steps. But when I'm trying to run the application in iOS Simulator, I'm getting error message No mapping for the…
0
votes
1 answer

Shifting the focus from one component to another in mobile using Delphi XE8

I'm developing Android mobile application using Delphi XE8 and please help me to do the following implementation. In a Form, I'm having 3 Components which is the following order 1. TEdit (edtValue1), 2. TEdit (edtValue2), 3. TComboBox…
0
votes
1 answer

Firemonkey style designer make TRectangle fill parent

I am trying to add a TRectangle object to a Firemonkey control in the style designer to give the control a background color. I can add the TRectangle and size it manually, however then the style does not work if the control changes size in the…
James Hogle
  • 3,010
  • 3
  • 22
  • 46
0
votes
3 answers

How to change the colour of the stringgrid particular cell using Delphi XE7

I'm using Delphi XE7 for developing Android application. In that I have used TStringGrid component and then I have used StringGrid.cells[0, 0] := 'Test' And how can I change the Font colour of that particular cell which I have shown in the code.…