आप RFTText
संपत्ति की स्थापना एक TRichEditViewer
उपयोग कर सकते हैं के बाद बदल जाता है स्ट्रिंग लाइन तोड़ने और सही पर UseRichEdit
हैं ।
इस नमूने
procedure CreateCustomPages;
var
Page : TWizardPage;
rtfHelpText : TRichEditViewer;
s: string;
begin
Page := CreateCustomPage(wpWelcome, 'Custom wizard page controls', 'Bold Demo');
Page.Surface.Align:=alCLient;
s:='{\rtf1\ansi\ansicpg1252\deff0\deflang13322{\fonttbl{\f0\fnil\fcharset0 Tahoma;}}'+
'\viewkind4\uc1\pard\f0\fs16 This is a normal text, \b and this is a bold text\b0\par}';
rtfHelpText := TRichEditViewer.Create(Page);
rtfHelpText.Parent := Page.Surface;
rtfHelpText.Left := 0;
rtfHelpText.Top := 0;
rtfHelpText.Width := Page.SurfaceWidth;
rtfHelpText.Height := Page.SurfaceHeight;
rtfHelpText.Scrollbars := ssVertical;
rtfHelpText.ReadOnly := True;
rtfHelpText.UseRichEdit := True;
rtfHelpText.RTFText := s;
end;
procedure InitializeWizard();
begin
CreateCustomPages();
end;
एक स्वरूपण 'TLabel' नहीं हो सकता है की कोशिश करो। या तो आप कई 'TLabel' नियंत्रणों का उपयोग करते हैं, या आप कुछ अन्य नियंत्रण का उपयोग करते हैं (वैकल्पिक रूप से, आप पाठ को मैन्युअल रूप से खींचने के लिए जीडीआई का उपयोग कर सकते हैं)। –
यह एक रिचर्ड नियंत्रण या एचटीएमएल रेंडरर जैसा दिखता है। –
जब आप सही प्राप्त करते हैं [http://meta.stackexchange.com/a/5235/179541) को भूलना न भूलें ;-) – TLama