00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "GestionAcces.h"
00012
00013
00014 int Police = 15;
00015 int Fond = 0;
00016
00017 void CoulP(void);
00018 void CoulF(void);
00019
00020
00021 void F_Options(void)
00022 {
00023 int Choix = 1;
00024 int Select = 1;
00025
00026 Menu Option(" Options ");
00027 Option.AddItem(1, "Couleur de police");
00028 Option.AddItem(2, "Couleur de fond");
00029
00030 Option.AddItem(4, "Menu precedent ");
00031
00032 Option.SetSelct(1);
00033
00034 do
00035 {
00036 Option.Affiche();
00037 Select = Choix;
00038 Choix = Option.Gere();
00039 if(Choix == -1)
00040 {
00041 switch(Select)
00042 {
00043 case 1 : CoulP();
00044 break;
00045 case 2 : CoulF();
00046
00047 }
00048 if(Select != 4) Choix = Select;
00049 }
00050 }
00051 while((Select != 4) || (Choix != -1));
00052 }
00053
00054
00055 void CoulP(void)
00056 {
00057 char Tf[2] ,Tp[2] ;
00058 char Out[12] = "color ";
00059 int Choix = 1;
00060 int Select = 1;
00061
00062 _itoa(Fond,Tf,16);
00063 Menu CoulP(" Police ");
00064 CoulP.AddItem(1, "Noir ");
00065 CoulP.AddItem(2, "Bleu fonce ");
00066 CoulP.AddItem(3, "Vert ");
00067 CoulP.AddItem(4, " Bleu-gris ");
00068 CoulP.AddItem(5, "Marron ");
00069 CoulP.AddItem(6, " Pourpre ");
00070 CoulP.AddItem(7, "Kaki ");
00071 CoulP.AddItem(8, "Gris clair ");
00072 CoulP.AddItem(9, "Gris ");
00073 CoulP.AddItem(10, "Bleu clair ");
00074 CoulP.AddItem(11, "Vert clair ");
00075 CoulP.AddItem(12, "Cyan ");
00076 CoulP.AddItem(13, " Rouge ");
00077 CoulP.AddItem(14, "Rose ");
00078 CoulP.AddItem(15, " Jaune ");
00079 CoulP.AddItem(16, "Blanc");
00080
00081 CoulP.SetSelct(Police+1);
00082
00083 do
00084 {
00085 CoulP.Affiche();
00086 Select = Choix;
00087 Choix = CoulP.Gere();
00088 if(Choix == -1)
00089 {
00090 if((Select >= 1) && (Select <=16))
00091 {
00092 _itoa((Select-1),Tp,16);
00093 strcat(Out, Tf);
00094 system (strcat(Out,Tp));
00095 Police = Select-1;
00096 }
00097 }
00098 }
00099 while(Choix != -1);
00100 }
00101
00102
00103 void CoulF(void)
00104 {
00105 char Tf[2] ,Tp[2] ;
00106 char Out[12] = "color ";
00107 int Choix = 1;
00108 int Select = 1;
00109
00110 _itoa(Police,Tp,16);
00111 Menu CoulF(" Fond ");
00112 CoulF.AddItem(1, " Noir ");
00113 CoulF.AddItem(2, " Bleu fonce ");
00114 CoulF.AddItem(3, " Vert ");
00115 CoulF.AddItem(4, "Bleu-gris ");
00116 CoulF.AddItem(5, " Marron ");
00117 CoulF.AddItem(6, "Pourpre ");
00118 CoulF.AddItem(7, " Kaki ");
00119 CoulF.AddItem(8, " Gris clair ");
00120 CoulF.AddItem(9, " Gris ");
00121 CoulF.AddItem(10, " Bleu clair ");
00122 CoulF.AddItem(11, " Vert clair ");
00123 CoulF.AddItem(12, " Cyan ");
00124 CoulF.AddItem(13, "Rouge ");
00125 CoulF.AddItem(14, " Rose ");
00126 CoulF.AddItem(15, "Jaune ");
00127 CoulF.AddItem(16, " Blanc");
00128
00129 CoulF.SetSelct(Fond+1);
00130
00131 do
00132 {
00133 CoulF.Affiche();
00134 Select = Choix;
00135 Choix = CoulF.Gere();
00136 if(Choix == -1)
00137 {
00138 if((Select >= 1) && (Select <= 16))
00139 {
00140 _itoa((Select-1),Tf,16);
00141 strcat(Out, Tf);
00142 system(strcat(Out,Tp));
00143 Fond = Select-1;
00144 }
00145 }
00146 }
00147 while(Choix != -1);
00148 }