Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1743 connectés 

  FORUM HardWare.fr
  Programmation
  Delphi/Pascal

  [delphi]Polices et richedit

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[delphi]Polices et richedit

n°126141
endemyon
Posté le 15-04-2002 à 16:24:27  profilanswer
 

Comment faire pour avoir des lignes avec des polices différentes dans un RichEdit. J'ai pas réussi à, trouver ça dans la doc merci d'avance

mood
Publicité
Posté le 15-04-2002 à 16:24:27  profilanswer
 

n°128937
[SDF]Poire
Vive Grumly
Posté le 20-04-2002 à 22:03:51  profilanswer
 

DefAttributes
SelAttributes
SelStart
SelLength
 
This example requires a TRichEdit and a TButton. Leave the default text, usually "RichEdit1", in the lines property. The DefAttributes will apply to this text.
 
procedure TForm1.Button1Click(Sender: TObject);
 
begin
  with RichEdit1.SelAttributes do
  begin
    Color := clRed;
    Height := Height + 5;
  end;
  RichEdit1.Lines.Add('This line of text will be red.';);
end;
 
procedure TForm1.Button2Click(Sender: TObject);
begin
  RichEdit1.DefAttributes.Color := clBlue;
  RichEdit1.DefAttributes.Style := [fsBold, fsItalic];
end;
 
Tu mélanges, tu secous et t'oublis pas  [:f1key] et ça va roulez
 :hello:


---------------
Des bons sites pour Delphi? http://forum.hardware.fr/forum2.php3?post=16838&cat=10 -- informaticien -- http://www.z0rglub.com/phpwebgallery/ -- Delphi :love:

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Delphi/Pascal

  [delphi]Polices et richedit

 

Sujets relatifs
Que faut il pour faire du delphi ?[Delphi] Afficher la version de windows
Delphi et les boutons en couleurs[Delphi] Stringgrid et sélection d'un élément...
[Delphi]Connection ODBC sans utilise le BDE administratror[delphi]recherche un composant
Delphi, LPT et win2k[DELPHI] Optimisation du code & gestion de la mémoire
[Delphi] installation de composants[delphi] encore une question qui vous prendra a peine 2 minutes .
Plus de sujets relatifs à : [delphi]Polices et richedit


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR