Results for "Author: dave andrews"
This is an all API list-box function. Use it the same way you would use inputbox() or msgbox(). Fully configurable and auto-resizes the controls on the fly. Very easy to use, and a great example to learn API/hooking in Visual Basic. Vote if you like, but please leave comments if you like or dis-like this code.
This is the source code for a textbox that has an hDC handle! ***THIS IS NOT A LABEL*** This means that you can paint a picture / skin onto it, thus simulating transparency . . .or whatever you want it to look like. My textbox supports ALMOST EVERY function that a MS-textbox supports . .including selection of text, jumping to words and scrolling. ***PLEASE TAKE A LOOK*** Included in this code-download is also my newest 'low-memory' version of transparent buttons, which is a class-module that automates on-the-fly skinning of command buttons. A MUST SEE!
This code demonstrates a very easy and effective way to simulate pond ripples on a picture. It will simultaneously render multiple pond ripples. Just click-drag your mouse across the image, and watch all the ripples dissipate. Very cool effect. Votes or comments are appreciated.
***REQUIRES DIRECTX 7*** This is a 3D dungeon mapper that is very easy to use. Please see screen-shot. Displays / maps multiple levels within the maze. Great for MUD's, Doom-Wads, and other RPG maze-type games. Use the cursor keys to add 'squares', 'D' to go down a level, 'U' to go up, and 'Delete' to remove a square. Happy Gaming! Comments and/or votes greatly appreciated.
Makes a textbox transparent. Here's how I do it: Get the DC from the textbox hWnd. Paint the textbox text onto the textbox parent. Paint the parent's image onto the textbox. Pretty Simple eh?
All API-driven masked user input function. Works similiar to the "InputBox" function. The form and all controls are generated by API, so there is no need to include special forms when you want to have a user put text into a masked edit control. Enjoy!
Use your optical mouse as a camera! Very easy to use, and code is quite simple. Provides greyscale, lowquality, out of focus images, but it's lots of fun. Send it to a friend! It's not a PSC code of the month, but if you want to vote to voice your opinion, go ahead. Please do not look directly into your mouse LED!
Have you even had a complex shape you needed to be turned into a mesh for use in a 3d project? This code shows you how to generate the triangles (DeLaunay Triangulation) based on 'outline' geometry. Implemented in this project is the ability to draw geometry and generate a mesh and a 3D extrusion of the mesh. Supports 'holes' in the mesh as well (auto calculated right-hand,left hand). This method is used for triangulating non-uniform meshes. Included (but NOT fully implemented in THIS project) is a VB-CAD library I designed for a company that makes 3d models from 2D Autocad drawings. This powerful library has all of the math functions to calculate intersection points between all geometry (line,arc,ellipse,spline) It also has an updated DXF import as well as funtions for scaling, flipping, rotating, non-linear arrays, trimming, cornering, relimiting chamfering and rounding. Requires DX7 library for 3d views.
Automatically Create 3D Mesh Objects VB CAD now supports DXF Import and 3DX Output (for use in your OWN DirectX application) as well as the following functions: DeLaunay Triangulation, Line, Chain, Polyline, Spline, 3-Point Arc, Arc, Circle, Open Ellipse, Ellipse, Grid, Snap To Endpoints, Snap To MidPoints, Snap To Intersection Points, Snap To Edit Points, Snap To Grid, Zoom In, Zoom Out, Zoom Window, Pan. If you have ever had a need to create complex mesh objects for a 3D project - or just for fun, then this is the program to use. Just draw your closed geometry, set the fill-point (mesh center) and it will automatically triangulate your object for you using the DeLaunay trianulation method. If you have more than one object, then individually select and triagulate each object (remembering to re-set the mesh center (fill point) for each object. Then you can save the object as a ".X" file for use in other programs. I hope that you enjoy and benefit from this project, and please take a minute to vote for me. Thanks! Code is here on PSC: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=35722&lngWId=1
This will make phrase-anagrams of any set of words (like names) For example "Planet Source Code" = "Accented Our Slope" Or my name "David Michael Andrews" = "I am dad's new arch-devil" This code is a lot of fun and easy to use. Nothing 'really' useful though, if you want to vote, go ahead, but I prefer positive user feedback much more than votes. NOTE: this upload includes a 250,000 word dictionary in plain-text form.
***UPDATED WITH USER REQUESTS*** A one-player 3D scrabble™ game using DirectX7. Has a 250,000 word dictionary (plain text). Will check and verify the words. Uses standard scrabble™ rules and scoring - except you can build words around corners. It is lots of fun. To Play, simply click on a letter in the 'rack' and then rotate the cube and click the space you want to place the letter. I might end up modifying the game to be 2-player over the TCP/IP if enough interest and positive feedback is given. If you think it's worthy of a vote, then vote. I would appreciate any user feedback and suggestions to improve this game. Enjoy!
I developed this to solve 'Yahoo Word Racer' games. You can put in a 'letter grid' of any shape or size - even ones with HOLES such as in round 4. (right now up to 10X10) and it will solve all of the possible REAL words (using the included dictionary). It would also work fine for Boggle. Since Word Racer is a fast-paced game, I have it set to only solve 3,4, and 5 letter words (unless there is a 'QU' in there in which case it will also solve 6 letters) One of the intersting things about my solver is that you can use groups of letters in each cell, and it could find words in combination of groups of letters. If you want to have it solve longer words, simply add a new listbox to the lstWords array - giving it an index number equal to the number of letters wanted, and then modify the limits at the bottom of function "AddNextLetter" Enjoy!
Based on "Rubik's® Magic Strategy Game" sold by Matchbox™ about 15 years ago. Each player has tiles with a circle on one side, and a diamond on the other. Each player must place one of their own tiles as well as flip one of their opponents tiles over. The object is to get three like-tiles in a row that can NOT be flipped out of that run by your opponent. Play against the computer or play against a friend. You can also watch a DEMO of the game by letting the computer play itself! There are 6 levels of difficulty. The game requires DirectX7, and all objects are 3D and can be rotated on the screen. Easy to play and lots of fun. If you like it, and think it's worthy of a vote, then please do so. I would also appreciate any feedback and comments. -ENJOY!
This game is played just like a jig-saw puzzle, but has an infinite number of solutions. In order for a tile to fit on the board, all of the colors on the tile must line up with any adjacent tiles on the board. After starting a game, select a tile from the 'tile-set' on the right hand of the form. Place the tile on the board by left clicking. Use the right mouse button to rotate the tile 90 degrees. You can swap tiles by clicking on an existing tile on the board. If you select a new tile from the tile-set before you place it on the board, then the previously selected tile will return to the tile-set. You may also right-click on a board-tile to return it to the tile-set. The game is over when you fill the board. There is *always* a possible solution. The exception being if you do not supply a big enough board for a given number of colors. The score is based on the number of colors used and the size of the board. Have fun!
The included Excel spreadsheet is a fully functional Soduku game generator and is playable right on the spreadsheet. If you enable 'hints' it will show you when you enter a bad value. The charts are there as 'boss candy' just in case you want to play a game - and look like you are doing work! I have previously released this as freeware on www.download.com. (I am 'Lyrical Software') Feel free to use the source code (that's why it is posted here).
This is a simple, but addictive game. The object is to clear the screen of all of the blocks. You may only select blocks that have neighboring blocks of the same color. This is not an original idea. I saw the game on a B&W handheld PC, and wanted to have it in color on my 'work' computer. It uses a complex sorting algorythem, which could possibly be used for sorting non-linear arrays of data.
**********UPDATED*********** 90% speed increase for transparency math, as well as refresh speed. Also now uses a simple class module. Very easy to use and configure. I wrote this code to avoid having to design up and down images for projects with graphical skins. This code allows you to create rectangular and elliptical transparent buttons on any container without ActiveX controls. The code is completely modular and has many editable parameters.--- NOTE: If anyone knows how to hook / get procedure callbacks from classed-functions, please contact me.
This program will open and allow you to view any '2D' ASCII DXF file. It supports BLOCKS, INSERTS, DIMENSIONS, and ALL 2D GEOMETRY types (for R12 and R13). It stores the DXF data in an array, so you have full access to perform manipulation and calculations on the geometry. NO OCX REQUIRED - just pure VB. *Keep an eye out for an update that will hande R14 and DWG 2D files.
FINALLY A FUNCTION THAT EVERONE CAN USE - Microsoft should have thought of this. This is a DATE/TIME calendar dialog that is created using only native Windows API. (See ScreenShot) NO FORM NEEDED! It is used / called like any normal function. EXAMPLE: MyText = ShowDate() This will show the Date/Time Calendar and allow the user to select a date/time from a calendar / clock. You can also supply a 'default' date for the calendar to start at. This is my first attempt at hooking with VB and researched all of the requirements online at the MSDN libraries. Vote if you are so inclined. I would appreciate any comments or suggestions. *AMPM bug fixed *sorry* ENJOY
This is an all API list-box function. Use it the same way you would use inputbox() or msgbox(). Fully configurable and auto-resizes the controls on the fly. Very easy to use, and a great example to learn API/hooking in Visual Basic. Vote if you like, but please leave comments if you like or dis-like this code.