Interface Source By C++
     
Home Page

Whats New Page

Catalog Page

Custom Page

Custom2 Page

Custom3 Page

Custom4 Page

Favorite Links Page

Guest Book Page

 

This Source is C++ include for All InterFace in Dos
void Col(int ForeColor,int BackColor)
{
// textcolor(ForeColor);
// textbackground(BackColor);
textattr(ForeColor + ((BackColor) << 4));
}

void Label(int X,int Y,int BackColor,int ForeColor,char Caption[],...)
{
va_list arg_ptr;
char OutputShow[81]="\0";

va_start(arg_ptr, Caption);
vsprintf(OutputShow, Caption, arg_ptr);

Col(ForeColor,BackColor);
gotoxy(X,Y);
cprintf("%s",OutputShow);
}


void Frame(int Left,int Top,int Width,int Height,int BackColor,int ForeColor,char Caption[])
{
_setcursortype(_NOCURSOR);
window(1,1,80,25);
//Var//
int X=0;
int Y=0;


for(Y=Top;Y for(X=Left;X {
if(Y==Top || Y==Top+Height)Label(X,Y,BackColor,ForeColor,"ح");
else if(X==Left || X==Left+Width)Label(X,Y,BackColor,ForeColor,"؛");
else Label(X,Y,BackColor,ForeColor," ");
}

Label(Left,Top,BackColor,ForeColor,"ة");
Label(Left,Top+Height,BackColor,ForeColor,"ب");
Label(Left+Width,Top,BackColor,ForeColor,"»");
Label(Left+Width,Top+Height,BackColor,ForeColor,"¼");

//Draw Shadow
if(Left+Width<78 && Top+Height<24)
for(Y=Top;Y for(X=Left;X {
if(X>Left+Width+1 && Y>Top)Label(X-1,Y,BLACK,DARKGRAY,"²²");
else if(Y>Top+Height && X>Left+1)Label(X,Y,BLACK,DARKGRAY,"²²");
}

Label(Left+((Width-strlen(Caption))/2),Top,BackColor,ForeColor,Caption);

window(Left+1,Top+1,Left+Width-1,Top+Height-1);
}

int StopKey(int KeyCode)
{
char ch;

do{
ch=getch();
if (KeyCode==255)break; //255 is Code me for exit loop
}while(ch!=KeyCode);

return ch;
}


void InitDesktop(void)
{
int i=0;
Col(1,7);
clrscr();
window(1,1,80,25);
for(i=1;i<80*24;i+=6)
cprintf("%c%c%c%c%c%c",176,176,176,177,176,177);
cprintf(" ..........¥گ ‎¤‘î");

Frame(10,2,60,3,1,15,"");
cprintf(" üَ‘م—ùُ¨“ \n\r");Col(14,1);
cprintf(" ù÷‘،“‘—î ¤گ¥êگô¤÷");

}

int InitWindowToolbar(int x,int y,int Long,char Text[80],char *Item[80])
{
//Var
int i=0;
int Size=0;
int xx=0;
char ch;

Size=strlen(Item[0]);

for(i=0;i if(strlen(Item[i])>=Size)Size=strlen(Item[i]);

Frame(x,y,Size+7,Long*2+2,BLUE,WHITE,Text);

goto Work;

Start:
ch=getch();
if(ch==27)goto End;
if(ch==13)goto EnterKey;
if(ch==80){if(xx==Long-1){xx=0;goto Work;}else{xx=xx+1;goto Work;}}
if(ch==72){if(xx==0){xx=Long-1;goto Work;}else{xx=xx-1;goto Work;}}

goto Start;

Work:
for(i=0;i Label(2,i*2+2,BLUE,WHITE," %s ",Item[i]);

Label(2,xx*2+2,LIGHTBLUE,YELLOW,"%c %s %c",17,Item[xx],16);
goto Start;

EnterKey:
// Frame(x,y,Size+7,Long*2+2,BLUE,WHITE,Text);

return xx+1;
goto EndE;

End:
return 0;

EndE:
}

void LoadDesktop(void)
{
int i=0;
Col(1,7);
window(1,7,50,24);
for(i=1;i<50*16;i+=6)
cprintf("%c%c%c%c%c%c",176,176,176,177,176,177);
}

  Edit a custom page for your Web site: This is the ideal place to design your own custom page, filled with whatever you can imagine from products, pictures, fan clubs, links or just more information.

Your custom image
  Edit a custom page for your Web site: This is the ideal place to design your own custom page, filled with whatever you can imagine from products, pictures, fan clubs, links or just more information.

Your custom image
  Edit a custom page for your Web site: This is the ideal place to design your own custom page, filled with whatever you can imagine from products, pictures, fan clubs, links or just more information.

Your custom image
 
   
 

C++ is Good Language