Salut
J'ai créé une fonction qui affiche du texte et j'ai petit un problème pour la couleur. Merci pour votre aide![]()
Voilà ma fonction
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 Const MemEcran = $B800; Function Affiche(X,Y : Word; S : String): String; var i : Integer; Offset:Word; begin Offset:= Y * 160 + X * 2; for i := 1 to Length(s) do begin Mem[MemEcran:Offset]:=Ord(s[i]); Inc(Pos,2); end; end;
Partager