Swipe on gui buttons

I am making a horizontal scroll view using gui.beginscrollview(). and i want the swipe gesture for this menu and on click of buttons inside this view a pop up window is created.
Please help me…i am stuck.

here is my code::
using UnityEngine;
using System.Collections;

public class HSB : MonoBehaviour {
	public float hSbarValue;
	public Texture2D btntexture1;
	public Texture2D btntexture2;
	public Texture2D btntexture3;
	public Texture2D btntexture4;
	
	public Vector2 scrollPosition = Vector2.zero;
	public Vector2 scrollPosition1 = Vector2.zero;
	public bool doWindow0=false;
	public GameObject Stick_animated;
	public GameObject Shape_animation;
	private GameObject instantiatedShape_animation;
	private bool button1enabled=true;
	private bool button2enabled=false;
	private bool button3enabled=false;
	private bool button4enabled=false;
	private bool button5enabled=false;
	private bool button6enabled=false;
	
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		
	}
	
	
	
	//pop up window
	
	void DoWindow0(int windowid){
		
		scrollPosition1 = GUI.BeginScrollView(new Rect(0, 0, 200, 50), scrollPosition1, new Rect(0, 0, 220, 70));
		
			if(GUI.Button(new Rect(10,20,100,20),btntexture1))
			{
				Debug.Log ("button1 pressed..");
				//Application.LoadLevel("level9");
				Instantiate (Stick_animated,new Vector3(0,-2,0),Quaternion.identity);
				//bool temp=true;
				//GameManager.found=true;
				button2enabled=true;										//button2 enabled
			}
			
			if(button2enabled){
				if(GUI.Button(new Rect(120,20,100,20),btntexture2))
				{
					Debug.Log("button2 inside window...");
					Instantiate(Shape_animation,new Vector3(0,5.44992f,-1.68711f) ,Quaternion.identity);
					//instantiatedShape_animation.animation.Play();
					button3enabled=true;									//button3 enabled
			
				}
			}
		
			if(button3enabled){
				if(GUI.Button(new Rect(10,50,100,20),btntexture3))
				{
					Debug.Log("button3 inside window...");
					button4enabled=true;									//button4 enabled
				}
			}
		
			if(button4enabled){
				if(GUI.Button(new Rect(120,50,100,20),btntexture4))
				{
					Debug.Log("button4 inside window...");
					button5enabled=true;									//button5 enabled
				}
			}
		
			if(button5enabled){
				if(GUI.Button(new Rect(10,80,100,20),btntexture2))
				{
					Debug.Log("button5 inside windows...");
					button6enabled=true;									//button6 enabled
				}
			}
		
			if(button6enabled){
				if (GUI.Button(new Rect(120,80,100,20),btntexture4))
				{
					Debug.Log("button6 inside windows...");
				}
			}
		
		GUI.EndScrollView();
	}
			   
    
	
	//  bottom scroll bar
	
	
	void OnGUI() {
		
      scrollPosition = GUI.BeginScrollView(new Rect(70,280, 200, 70), scrollPosition, new Rect(0, 0, 199, 70));
		//Touch touch=Input.touches[0];
		//if(touch.phase == TouchPhase.Moved)
    	//scrollPosition.x += touch.deltaPosition.x;
		
        if(GUI.Button(new Rect(0, 50, 30, 30), btntexture1)){
			doWindow0 = !doWindow0;
		}
        
		if(GUI.Button(new Rect(40, 50, 30, 30), btntexture2)){
			doWindow0 = !doWindow0;
		}
        
		if(GUI.Button(new Rect(80, 50, 30, 30), btntexture3)){
			doWindow0 = !doWindow0;
		}
        
		if(GUI.Button(new Rect(120, 50, 30, 30), btntexture4)){
			doWindow0 = !doWindow0;
		}
        
		GUI.EndScrollView();
		
		// Make sure we only call GUI.Window if doWindow0 is true.
    	if (doWindow0)
        	GUI.Window (0, new Rect (70,250,200,50), DoWindow0, "Window 2");
	}
}

Please help me …
thanks in advance…!!

any one…???

Try this approach link text

already tried it…!! and getting some logical error like scroll is still working if touch is out of the window rectangle…!!!