Subversion Repositories Kolibri OS

Rev

Rev 5583 | Rev 5598 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5583 Rev 5591
Line 300... Line 300...
300
inline fastcall dword WaitEvent()
300
inline fastcall dword WaitEvent()
301
{
301
{
302
	$mov eax,10
302
	$mov eax,10
303
	$int 0x40
303
	$int 0x40
304
	wait_event_code = EAX;
304
	wait_event_code = EAX;
-
 
305
	//if(wait_event_code==evMouse) MOUSE.get();
-
 
306
	//return wait_event_code;
305
}
307
}
Line 306... Line 308...
306
 
308
 
307
inline fastcall dword CheckEvent()
309
inline fastcall dword CheckEvent()
308
{
310
{
Line 784... Line 786...
784
	EBX = 3;
786
	EBX = 3;
785
	EDX = ID_ACTIVE;
787
	EDX = ID_ACTIVE;
786
	$int 0x40
788
	$int 0x40
787
}
789
}
Line -... Line 790...
-
 
790
 
-
 
791
inline getIPC(ECX,EDX)
-
 
792
{
-
 
793
	$mov EAX,60
-
 
794
	$mov EBX,2
-
 
795
	$int 0x40
-
 
796
}
-
 
797
 
-
 
798
inline sendIPC(ECX,EDX,ESI)
-
 
799
{
-
 
800
	$mov EAX,60
-
 
801
	$mov EBX,1
-
 
802
	$int 0x40
-
 
803
}
788
 
804
 
789
void UnsafeDefineButton(dword x,y,w,h,EDX,ESI)
805
void UnsafeDefineButton(dword x,y,w,h,EDX,ESI)
790
{
806
{
791
	EAX = 8;
807
	EAX = 8;
792
	EBX = x<<16+w;
808
	EBX = x<<16+w;
Line 816... Line 832...
816
	{
832
	{
817
		case evReDraw:
833
		case evReDraw:
818
			DefineAndDrawWindow(215,100,250,200,0x34,0xFFFFFF,"Alert");
834
			DefineAndDrawWindow(215,100,250,200,0x34,0xFFFFFF,"Alert");
819
			WriteTextB(5,5,0x90,0x0,ALERT_TEXT);
835
			WriteTextB(5,5,0x90,0x0,ALERT_TEXT);
820
		break;
836
		break;
-
 
837
		case evKey:
821
		case evButton:
838
		case evButton:
822
			id=GetButtonID();
839
			id=GetButtonID();
823
			if (id==1) ExitProcess();
840
			if (id==1) ExitProcess();
824
		break;
841
		break;
825
	}
842
	}