コード例 #1
0
  void data(int a,int b)
  {
       setcolor(4);
       settextstyle(1,0,1);
       outtextxy(a,b,    "    A COMPLETE SOLUTION TO    ");
       outtextxy(a,b+20, "    BILLING AND MANAGEMENT    ");
       outtextxy(a,b+40, "    OF LARGE OR SMALL SCALE   ");
       outtextxy(a,b+60, "    DEPTARTMENTAL STORE...    ");
       outtextxy(a,b+80, "");
       outtextxy(a,b+100,"");
       setcolor(14);
       outtextxy(a,b+120,"     SUPER  MARKET SUPERVISOR");
       outtextxy(a,b+140,"          --version--2-r     ");
       outtextxy(a,b+160,"           ADMINISTRATOR     ");
       outtextxy(a,b+180,"");

       moveto(a,b+240);
       setcolor(4);
       outtext("By Sadanandh");
       outtextxy(a,b+260,"PROFITZ SOLUTIONS");
       showmouse();
       Button F1,F2;
	F1.init(a+100,b+200,"  OK  ",NORMAL,0,-2);
	F1.show( );

	selc(F1,F2,24,8);
       restore_previous_settings( );

  }
コード例 #2
0
ファイル: movie.cpp プロジェクト: BruceJawn/flashsnes
static void change_state(MovieState new_state)
{
	if(new_state==Movie.State)
		return;

	if(Movie.State==MOVIE_STATE_RECORD)
	{
		flush_movie();
	}

	if(new_state==MOVIE_STATE_NONE)
	{
		// truncate movie to MaxSample length if Settings.MovieTruncate is true
		truncate_movie();

		fclose(Movie.File);
		Movie.File=NULL;

		if(S9xMoviePlaying() || S9xMovieRecording()) // even if recording, it could have been switched to from playback
		{
			restore_previous_settings();
		}
	}

	Movie.State=new_state;
}
コード例 #3
0
ファイル: movie.cpp プロジェクト: Kriole/snes9x-rr
static void change_state(MovieState new_state)
{
	if(new_state==Movie.State)
		return;

	if(Movie.State==MOVIE_STATE_RECORD)
	{
		flush_movie();
	}

	if(new_state==MOVIE_STATE_NONE)
	{
		// truncate movie to MaxSample length if Settings.MovieTruncate is true
		truncate_movie();

		fclose(Movie.File);
		Movie.File=NULL;

		if(S9xMovieActive())
		{
			restore_previous_settings();
		}
	}

	Movie.State=new_state;
}
コード例 #4
0
void product::getdata()
{
get_current_settings( );
settextstyle(1,0,1);
outtextxy(240,202,"Name");
restore_previous_settings( );
txt_box(name,260,222);
settextstyle(1,0,1);
outtextxy(240,242,"Price");
restore_previous_settings( );
boxx(price,260,262);
settextstyle(1,0,1);
outtextxy(240,282,"Prno");
restore_previous_settings( );
boxx(prno,260,302);
//settextstyle(1,0,1);
//outtextxy(240,322,"Qty");
//restore_previous_settings( );
//boxx(qty,260,342);
restore_previous_settings( );

}
コード例 #5
0
  void data2(int a,int b)
  {
  setcolor(4);
       settextstyle(1,0,1);
       outtextxy(a,b,"visit us at");
       outtextxy(a,b+20,"");
       outtextxy(a,b+40,"www.profitzsoftwares.com ");
       outtextxy(a,b+60,"");
       outtextxy(a,b+80,"Or email us at");
       outtextxy(a,b+100,"");
       outtextxy(a,b+120,"*****@*****.**");
       outtextxy(a,b+140,"");
       outtextxy(a,b+160,"Happy Computing     ");
       outtextxy(a,b+180,"Get your licence soon..");

       moveto(a,b+240);
       setcolor(11);
       outtext("Thank you......");
       restore_previous_settings( );


}
コード例 #6
0
void boxx(int& a,int x1,int y1)
{
 int size=20;
   int col1=11;
   int col2=0;
   int col3=7;
get_current_settings( );
  char s[40]={NULL};
	  int x_1=x1,y_1=y1,x_2=x1+(size*10),y_2=y1+10;
	  int count_=0;
	    setfillstyle(1,8);
	 bar(x_1,y_1,x_2,y_2);

       setcolor(col3);
	 rectangle((x_1-1),(y_1-1),(x_2+1),(y_2+1));

       setcolor(col2);
	 rectangle((x_1-2),(y_1-2),(x_2+2),(y_2+2));

	   int key_code=0;

	     char key=NULL;


	  do{


	     if(kbhit( ))
		{
		   key=getch( );

		   key_code=int(key);

		   if(key_code==0)
		      getch( );
		}

	     if(key_code==13)
	     {

		break;
	     }
	      else if(key_code==27)
	     {
		br_flag=1;
		break;
	     }
	     else if(key_code==8 && count_>0)
		{
		   setfillstyle(1,8);
		     bar(x_1,y_1,x_2,y_2);

		   count_--;

		   s[count_]=NULL;
		   count_--;
		   key=NULL;
		}
	  else
	  {
	  char* d=NULL;
	  *d=(char)key;
	  strcat(s,d);
	  }
	      if(count_<3)
	      {
	       setfillstyle(1,8);
	       bar(x_1,y_1,x_2,y_2);
	      }

	     setcolor(col1);
	     settextstyle(0,0,1);
	       moveto((x_1+5),(y_1+4));
		 outtext(s);

	     int x=getx( );
	     int y=gety( );

	     while(!kbhit( ))
		{
		   settextstyle(0,0,1);
		     setcolor(15);
		       moveto((x+2),y);
			 outtext("_");

		   delay(250);

		     setcolor(col1);
		       moveto((x+2),y);
			 outtext("_");

		   delay(200);
	       }

	       count_++;

	       }while(count_<size-1);


	       a=atoi(s);
	       restore_previous_settings( );

}
コード例 #7
0
 void passboxx(char ast[],int x=50,int y=50,int size=20,int col1=11,int col2=0,int col3=7)
       {
       get_current_settings( );
  char s[40]={NULL};
  char p[40]={NULL};



	  int x_1=x,y_1=y,x_2=x+(size*10),y_2=y+10;
	  int count_=0;

	    setfillstyle(1,8);
	 bar(x_1,y_1,x_2,y_2);

       setcolor(col3);
	 rectangle((x_1-1),(y_1-1),(x_2+1),(y_2+1));

       setcolor(col2);
	 rectangle((x_1-2),(y_1-2),(x_2+2),(y_2+2));

	   int key_code=0;

	     char key=NULL;


	  do{


	     if(kbhit( ))
		{
		   key=getch( );

		   key_code=int(key);

		   if(key_code==0)
		      getch( );
		}

	     if(key_code==13)
	     {

		break;
	     }
	      else if(key_code==27)
	     {
		br_flag=1;
		break;
	     }
	     else if(key_code==8 && count_>0)
		{
		   setfillstyle(1,8);
		     bar(x_1,y_1,x_2,y_2);

		   count_--;

		   s[count_]=NULL;
		   p[count_]=NULL;
		   count_--;

		}
	  else
	  {
	  char* d=NULL;
	  *d=(char)key;
	  strcat(s,d);


	 //if(count_!=0)
	   p[count_-1]='*';
	  cout<<count_;


	  }
	      if(count_<3)
	      {
	      setfillstyle(1,8);
	       bar(x_1,y_1,x_2,y_2);
	      }

	     setcolor(col1);
	     settextstyle(0,0,1);
	       moveto((x_1+5),(y_1+4));

	       setfillstyle(1,8);
	       bar(x_1,y_1,x_2,y_2);

		 outtext(p);

	     int x=getx( );
	     int y=gety( );

	     while(!kbhit( ))
		{
		   settextstyle(0,0,1);
		     setcolor(15);
		       moveto((x+2),y);
			 outtext("_");

		   delay(250);

		     setcolor(col1);
		       moveto((x+2),y);
			 outtext("_");

		   delay(200);
	       }

	       count_++;

	       }while(count_<size-1);

strcpy(ast,s);
outtextxy(400,400,ast);
getch();
restore_previous_settings( );

       }