Just starting out? Need help? Post your questions and find answers here.
			
		
		
			
				
																			
								sec 							 
						Enthusiast 			
		Posts:  792 Joined:  Sat Aug 09, 2003 3:13 amLocation:  90-61-92 // EU or ASIA
				Contact: 
				
			 
				
		 
		
						
						
													
							
						
									
						Post 
					 
								by sec  Sun Aug 17, 2003 1:23 pm 
			
			
			
			
			i try but it don't run:
Code: Select all 
OpenWindow(0,0,0,170,106,#PB_Window_ScreenCentered|#PB_Window_SystemMenu,"Events") 
Repeat 
  Select WaitWindowEvent() 
    Case #PB_Event_CloseWindow: End 
    Default
            Select EventType() 
              Case #PB_EventType_LeftDoubleClick
              MessageRequester("-","LeftDoubleClick",0)
            EndSelect 
  EndSelect 
ForEver 
 
		 
				
		
		 
	 
				
			
		
		
			
				
																			
								sec 							 
						Enthusiast 			
		Posts:  792 Joined:  Sat Aug 09, 2003 3:13 amLocation:  90-61-92 // EU or ASIA
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by sec  Sun Aug 17, 2003 3:10 pm 
			
			
			
			
			why don't anybody help me? 
 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Num3 							 
						PureBasic Expert 			
		Posts:  2812 Joined:  Fri Apr 25, 2003 4:51 pmLocation:  Portugal, Lisbon
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Num3  Sun Aug 17, 2003 3:40 pm 
			
			
			
			
			Double click is only reported by a gadget...
			
			
									
									
						 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								PB 							 
						PureBasic Expert 			
		Posts:  7581 Joined:  Fri Apr 25, 2003 5:24 pm 
		
						
						
						 
													
							
						
									
						Post 
					 
								by PB  Sun Aug 17, 2003 3:50 pm 
			
			
			
			
			> why don't anybody help me?
You only posted your question 2 hours ago... give us a chance!   
 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Henrik 							 
						Enthusiast 			
		Posts:  404 Joined:  Sat Apr 26, 2003 5:08 pmLocation:  Denmark 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Henrik  Sun Aug 17, 2003 4:14 pm 
			
			
			
			
			Hi
U can use this for now, it's ugly buut.
I got some of it from somewere in this forum ? ?
Code: Select all 
OpenWindow(0,0,0,170,106,#PB_Window_ScreenCentered|#PB_Window_SystemMenu,"Events")
Repeat 
EventID.l = WaitWindowEvent()
  If EventID= #WM_LButtonDown
      
      Tic=gettickcount_()
      Repeat 
       Event = WindowEvent()  
      Until Event= #WM_LButtonDown Or  gettickcount_()-Tic>getdoubleclicktime_()
       If gettickcount_()-Tic<=getdoubleclicktime_() 
            MessageRequester("-","LeftDoubleClick",0)
      EndIf
               
  EndIf
 
  Select EventID
  
  
    Case #PB_Event_CloseWindow: End 
    Default 
            
  EndSelect 
ForEver 
Best regards
Henrik
 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Num3 							 
						PureBasic Expert 			
		Posts:  2812 Joined:  Fri Apr 25, 2003 4:51 pmLocation:  Portugal, Lisbon
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Num3  Sun Aug 17, 2003 4:47 pm 
			
			
			
			
			I digged around on the API and this is what you need:
Code: Select all 
OpenWindow(0,0,0,170,106,#PB_Window_ScreenCentered|#PB_Window_SystemMenu,"Events") 
Repeat
  
  Select WaitWindowEvent()
    
      Case  #WM_RBUTTONDBLCLK       ; right mouse button was clicked2x 
      Debug "Hippy !!!"
         
    Case  #PB_EventCloseWindow
      End
      
  EndSelect
  
ForEver 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Henrik 							 
						Enthusiast 			
		Posts:  404 Joined:  Sat Apr 26, 2003 5:08 pmLocation:  Denmark 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Henrik  Sun Aug 17, 2003 4:54 pm 
			
			
			
			
			Num3 wrote: I digged around on the API and this is what you need:
Code: Select all 
OpenWindow(0,0,0,170,106,#PB_Window_ScreenCentered|#PB_Window_SystemMenu,"Events") 
Repeat
  
  Select WaitWindowEvent()
    
      Case  #WM_RBUTTONDBLCLK       ; right mouse button was clicked2x 
      Debug "Hippy !!!"
         
    Case  #PB_EventCloseWindow
      End
      
  EndSelect
  
ForEver
Hi num, this doesn't work on win 98 for some reason..
best regards
Henrik
 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Num3 							 
						PureBasic Expert 			
		Posts:  2812 Joined:  Fri Apr 25, 2003 4:51 pmLocation:  Portugal, Lisbon
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Num3  Sun Aug 17, 2003 5:21 pm 
			
			
			
			
			Strange...
I use this event in a number of programs and works fine...
But when i use it in the code i pasted here it does not work  8O 
What the hell  
 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								sec 							 
						Enthusiast 			
		Posts:  792 Joined:  Sat Aug 09, 2003 3:13 amLocation:  90-61-92 // EU or ASIA
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by sec  Tue Aug 19, 2003 3:34 pm 
			
			
			
			
			 thanks pb, Henrik, Num3
here have nice guys, 
WM_LBUTTONDBLCLK message is *not* a WM_NOTIFY message,just use it as you would any other normal message
Can detail same something ,guys?