yannba
Messages postés133Date d'inscriptionmercredi 4 janvier 2006StatutMembreDernière intervention 7 septembre 2010
-
8 févr. 2006 à 12:42
yannba
Messages postés133Date d'inscriptionmercredi 4 janvier 2006StatutMembreDernière intervention 7 septembre 2010
-
8 févr. 2006 à 16:14
Suivant une instruction, je changes la couleur, taille, fonte de certains edit, label, ...
Pour cla, je fais :
with Edit4 do
Begin
Font.Name:=FontName;
Font.Color:=FontColor;
Font.Size:=FontSize;
end;
with Label11 do
Begin
Font.Name:=FontName;
Font.Color:=FontColor;
Font.Size:=FontSize;
end;
J'en ai pas mal comme ca ... Connaissez vous une instruction du style :
With Font.Name:=FontName and Font.Color:=FontColor and Font.Size:=FontSize do
Begin
Edit1 ....
Label1 ....
End;
Cirec
Messages postés3833Date d'inscriptionvendredi 23 juillet 2004StatutModérateurDernière intervention18 septembre 202250 8 févr. 2006 à 13:03
Salut,
tu peux faire comme ça :
For i := 1 To 4 Do With TEdit(FindComponent('Edit' + IntToStr(I))) Do Begin Font.Name: =FontName;
Font.Color:= FontColor;
Font.Size:=FontSize;
End ;
For i : = 1 To 11 Do With TLabel(FindComponent('Label' + IntToStr(I))) Do Begin Font.Name:=FontName;
Font.Color:=FontColor;
Font.Size:=FontSize;
End;
@+
Cirec
yannba
Messages postés133Date d'inscriptionmercredi 4 janvier 2006StatutMembreDernière intervention 7 septembre 2010 8 févr. 2006 à 13:18
Toujours aussi efficace mon cher Cirec ! Merci
ET sais tu comment on fait pour Color, Name, Size d'un dateTimePicker.
Effectivement, avec ce composant, il reste fixe. J'ai essayé avec la méthode (grace au F1) MsgSetCalColors, mais j'avoue sans succes !!
Vous n’avez pas trouvé la réponse que vous recherchez ?
yannba
Messages postés133Date d'inscriptionmercredi 4 janvier 2006StatutMembreDernière intervention 7 septembre 2010 8 févr. 2006 à 15:09
Ca, je savais le faire. Ca influence sur le calendrier lorsque tu clique sur la flèche du DateTimePicker. Moi c'est à gauche de la fleche et non le clendrier, que je veux modifier !!