Mohammed Nasman 11 Posted November 5, 2018 Finally ControlType of TEdit will arrive to Android apps, it will solve a lot of problems with text, specially with RTL languages. http://delphi.org/2018/11/android-z-order-native-controls-and-10-3-rio/ Share this post Link to post
Yaron 53 Posted November 25, 2018 (edited) I'm have two issues with v10.3 and TEdit.ControlType set to TControlType.Platform: 1. Under windows (android is fine) using FMX, changing the Height property results in a corrupted dialog (the background isn't filled, showing a 'window' to the form and underlying visual components), here's the code I use to create the TEdit: textInputEdit := TEdit.Create(MainForm); textInputEdit.Parent := MainForm; textInputEdit.Width := Trunc(clientWidth*idMaxWidth); textInputEdit.Height := Trunc(textInputLabelOK.Font.Size*2); textInputEdit.StyledSettings := [TStyledSetting.Family]; textInputEdit.Font.Size := textInputLabelOK.Font.Size; textInputEdit.ControlType := TControlType.Platform; {$IFDEF MSWINDOWS} textInputEdit.TextSettings.FontColor := TAlphaColorRec.Black; {$ELSE} textInputEdit.TextSettings.FontColor := TAlphaColorRec.White; {$ENDIF} textInputEdit.KillFocusByReturn := True; textInputEdit.KeyboardType := TVirtualKeyboardType.Alphabet; // is this good? textInputEdit.TextPrompt := strEnterYourName; textInputEdit.SetBounds(Trunc((clientWidth-textInputEdit.Width)/2),Trunc(clientHeight*textInputEditMargin),textInputEdit.Width,textInputEdit.Height); 2. When I enter RTL text into the dialog, the resulting text STILL appears in reverse order when assigned to a TLabel for display. Edited November 25, 2018 by Yaron Share this post Link to post
Mohammed Nasman 11 Posted November 26, 2018 14 hours ago, Yaron said: 2. When I enter RTL text into the dialog, the resulting text STILL appears in reverse order when assigned to a TLabel for display. I think RTL language will work only with controls that has ControlType property set o Platform, they didn't mention they add it to TLabel. Share this post Link to post
Yaron 53 Posted November 26, 2018 Yes, but what's the point of all of this if you can't display the text properly... Share this post Link to post
Kryvich 165 Posted November 26, 2018 The main goal in 10.3 was to introduce Z-Order. So we can now place controls over video as example. Broader support of native controls planned for the first half of 2019, for 10.3.x updates. https://community.embarcadero.com/article/news/16638-rad-studio-august-2018-roadmap Share this post Link to post
Yaron 53 Posted November 27, 2018 It's not so much about native control as it's about RTL support... Share this post Link to post
Mohammed Nasman 11 Posted November 27, 2018 3 hours ago, Yaron said: It's not so much about native control as it's about RTL support... I think they failed to add RTL to FMX, so they bypass it to mobile's OS to do the work. Share this post Link to post