|  | 
 
Who This Tutorial is Aimed At 
Anyone who wishes to add a Search Bar onto a BlitzPlus interface using a web based search engine. 
What Does This Tutorial Show 
This tutorial will show you how to create windows, text fields, buttons and html view boxes and show you how to link between a BlitzPlus interface and a web based search engine like Google. 
Step 1 
First of all you will need to create a window and a text field box. 
 
The above piece of code will first of all create a function named CreateMain - the aim of this fucntion is to create and display the interface. 
Created next is a textfield with variable name InputBox (this is the box the user will type their search request into) 
Step 2 
Up next is how to create the search buttons along with the html view box. 
 
The above code is the rest of the function code for the CreateMain function. 
A HTMLView is also created here (this is the area in which the websites will appear, so the x and y pos, and the size of the view box is required. 
Then we must update out window menu - this is needed after any of the above commands have been executed in order for their effect to be realised. 
Step 3 
Now we need to tell the program to run the above function and set up a loop so that the program stays running, until the window is closed. 
 
The first line CreateMain() is how you tell the program to execute that particular function. 
PLEASE NOTE - The above source code is not complete and so will not work, variables names have been declared and a couple of menus have been made. 
The next part is the action to be taken if the menu item is selected (in this case a confirm box appears) 
Step 4 
Next up we must set up the actions of our buttons we have just created. 
 
EvID we will cover later on in the tutorial. 
Step 5 
In order to implement a web based search engine into a BlitzPlus application we need to know the URL of the search engine AFTER a user has searched for sometime using the search engines official website. 
Simply proceed to the search engines website (ie - www.google.com) and type in anything in their search box and clock search. 
 
You will notice that within the long URL there will be the text in which you inputted in their search box. 
 
The above code will place the text you inputed in the text field InputBox and place in AFTER the end of the website URL you just inputted. 
However you only have HALF the needed URL for a search so now you go back to your website search and this time you copy the URL AFTER the text you inputted for your search, and paste it after the (InputBox)+ text 
Step 6 
Then repeat Step 4 but this time change Search to Search1 (etc) and change the URL parts to a different URL from a different search engine website. 
 
the final piece of coding is the Wend which ends the while loop created earlier. 
 
Conclusion 
There you have it! A fully functional and customizable search engine within BlitzPlus using a web based search engine to do the searching for you! 
Please download the full source code in order to see the application in action! - Click Here
 
   
 |