Snatch Code w/Vintage Windows Interface (VWI is ⌐ PeaCe Ease LTD)
Copyright Arild Bergh, PeaCe eaSe LTD 1992
Compuserve: 100113,431
Cix: Aberji
Tel (44)(0)865-772160
Fax (44)(0)865-771461
This little VB program was developed because I was frustrated with having to load the WINAPI.TXT file into Write all the time, then searching for the function, copying and pasting, then go back and copy/paste the next bit.
This app is the solution to that and a couple of other problems. The interface is Vintage Windows, i.e. NO 3D shades, no jumping bitmaps etc. The VWI is a unique concept, developed in software laboratories in Norway and the UK, designed to conserve memory, and not divert the attention of the user. The VWI style guide can be obtained from the author of this programme by sending $12000.56 in used notes via Fax to the above fax no.
To install: Copy this app into the directory containing your winapi.txt, and any files containing the constants declarations which comes with VB and the PTK.
There are 9 listboxes displaying the fil you have currently open. The listboxes are multiple selection boxes, and everything you've selected in the current (i.e. the visible) listbox will be copied to the clipboard.
***
File/WIN Api: Opens up the file called winapi.txt (if any)
File/Constants: Opens up the file called constant.txt (if any)
File/Cust Control Const: Opens up the file called const2.txt (if any)
File/VB Progs: Allows you to select a file from a dialogbox, the pattern for the file list = "*.txt", so you will see VB progs saved as text only. Unlike the other options this fille the 2 other listboxes with a list of the Subs and Function you have in the textfile, allowing you to jump directly to it by doubleclicking on the wanted sub or function.
File/Other: Allows you to select a file from a dialogbox, the pattern for the file list = "*.*". You can change this by typing in the new pattern in the editbox and hit enter.
For the 2 last option you can select a file by double clicking on it, hit enter or click on OK. Typing in the filename in the textbox is no good.
***
Once you've opened a file you can search it, and copy parts of it to the clipbaord:
Edit/Add to clipboard: ADDS the current selection in the current listbox to what is already there and displays the clipborad contnts in the textbox.
Edit/Copy: Copies the current selection in the current listbox to the clipboard, and deletes what is currently there. Displays the clipborad contnts in the textbox.
Edit/Find: Searches ALL listboxes for the string you specify. NOT case sensitive. If it finds a match, it will display the matching line and ask if the match is the one you want. If you click NO it will search for the next match and so on...
Edit/Previous: Displays the next listbox, no 2 if your in no 1 and so on.
Edit/Next: Have a guess
***
In addition to snatching bits of code you can also snatch icons/metafiles and bitmaps. Doubleclicking on the displayed picture will put in on the clipboard. No adding possible of course. This is to make it easier to build toolboxes etc from a variety of PD icons etc.
Snatch Graphics: Displays the Snatch Graphics window.
***
Help/?????: I found it very annoying having to vade through dialogboxes to display a given helpfile. This is my solution:
Add the following to your WIN.INI:
[CodeCopy]
1=Title, helpfile
2=Title, helpfile
where title is the name you want to appear in the menu, and helpfile the full path and name of the helpfile to run. The example below gives you the QuickC helpfile on F1, general VB help on F2, custom control help on F3 and Knowledgebase on F4
[CodeCopy]
1=Quick C for windows, c:\qcwin\bin\qcwin.hlp
2=Visual Basic, c:\vb\vb.hlp
3=Visual Basic custom controls, c:\vb\ctrlref.hlp
4=Visual Basic Knowledge, c:\vb\vbknowlg.hlp
This file is uploaded a 'thank you' for all the tips I've found up here and is absolutely free. Give it to anyone you like, but please include this file.