0
votes

How to set TEdit to borderless or make it Flat in Firemonkey Android? Or any alternative input field that has borderless or flat option?

1
You'll need to edit the Style, preferably at runtime for a specific TEdit instance unless you want every TEdit control without borders.Peter
Yes I want the TEdit without borders, how to do that? I already tried the method using StyleBook and clearing the background SourceLookup but still during runtime nothing happen.user1041170
Edit the style, background->opacity := 0, and you'll have borderless TEdit, just like an editable labelLHristov
@edmund5, Don't change SourceLookup, just set the background object to Visible := False and then Edit.Repaint;Peter
@LHristov If I do that I can't see the input field during runtime.user1041170

1 Answers

1
votes

Two routes...

Styles:

use the following link to help you obtain original default style.From there you can use a copy of the style, and make changes as you wish via dropping a TStylebook and double clicking-> Loading your copied style -> after you make changes, then save and apply.. Then simply change the stylebook property for the form...

http://delphihaven.wordpress.com/2013/12/31/inspecting-platform-styles-redux/

Retangles and Edits:

Make use of the already implemented styles. First drop a TRectangle to act as your TEdit. Change the fill.color/stroke.color as you want... Then drop a TEdit ontop of the rectangle and change it's Stylelookup prop to, 'transparentedit'