Note that there are some explanatory texts on larger screens.

plurals
  1. PORichEdit control stop drawing text when it became a parent for other control
    text
    copied!<p>RichEdit control stop drawing text when it became a parent for other control.</p> <p>Is this a feature or a bug? Is it possible to make RichEdit to be a parent for other control?</p> <p>Check out next app:</p> <p>-- Form1.dfm ---</p> <pre><code>object Form1: TForm1 Left = 0 Top = 0 Caption = 'Form1' ClientHeight = 282 ClientWidth = 418 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] OldCreateOrder = False PixelsPerInch = 96 TextHeight = 13 object Button1: TButton Left = 24 Top = 8 Width = 75 Height = 25 Caption = 'Button1' TabOrder = 0 OnClick = Button1Click end object RichEdit1: TRichEdit Left = 16 Top = 72 Width = 145 Height = 105 Font.Charset = RUSSIAN_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] Lines.Strings = ( 'RichEdit1') ParentFont = False TabOrder = 1 end end </code></pre> <p>-- Form1.dfm ---</p> <p>--- Unit1.pas ---</p> <pre><code>unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls; type TForm3 = class(TForm) Button1: TButton; RichEdit1: TRichEdit; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form3: TForm3; implementation {$R *.dfm} procedure TForm3.Button1Click(Sender: TObject); begin Button1.Parent := RichEdit1; RichEdit1.Invalidate; end; end. </code></pre> <p>--- Unit1.pas ---</p> <p>Test under Delphi XE5 + Win 7.</p> <p>I want to create RichEdit with Edit button like this </p> <p><img src="https://i.stack.imgur.com/28aWH.png" alt="enter image description here"></p> <p>This is the result that I want to get - RichEdit with DropDown Editor:</p> <p><img src="https://i.stack.imgur.com/1pYMn.png" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload