Advertisement

Results for "Author: ulli"

2_2002-2004 #113520
Automated Accelerator Key Assignment

This Add-In analyses all (or selected) controls in a form and assigns or generates the necessary accelerator hotkeys, ie those keys that you press together with the Alt-key to access a control (the underlined characters which are preceeded by an ampersand in code). The problem is that a different accelerator key should be selected from the caption of each individual control. To achieve this one has to generate all possible permutations to find the best solution where the accelerator keys are all different and as far to the left as possible.

2_2002-2004 #113659
Talking Custom Tooltips

This demo application demonstrates the use of a Custom Tooltip Class supporting square and ballon style tooltips, centered at the corresponding control or at the mouse pointer hot spot, with or without title. Individual back- and forecolors and fonts are also possible as well as an assortment of Icons to be displayed in the tooltip and finally individual delay- and show-times. And whats more - the tooltip can now speak using Microsoft's Speech Object Library (SpVoice in sapi.dll), no XVoice.dll or VText.dll! The code is easy to follow and well documented. And on top of that the class is very easy to use. Check it out, download is only 10 kB.

2_2002-2004 #114404
Binary Adder Demo

My son and I made this for his IT class. You set or reset the operands bits, the mode, and the injected carry; the binary result, the intermediate and final carry and the overflow bit are then computed and displayed by applying the actual logic in the diagram. Download 8 kB

2_2002-2004 #114506
A Noisy Class

Simple Sound Mixer Wrapper Class plus Test Driver. Unfortunately the Mixer interface is rather complicated - maybe written by a musician *g* - so there are quite a few mystic API calls with plenty of params, mixer-constants with ugly names, cryptic structure types, and virtual memory address pointers from one structure into the next. And Micro$oft's documentation is slim, to put it polite, but I tried my best to put all that into a wrapper with a simple interface: You choose the Channel and SoundControl; this will return True if the selection was successful, and then Get or Let the Value. (Note that ALL values are in % - for booleans (like Mute) the value 0 means False and 100 means True - one hundred percent true, so to say).

2_2002-2004 #114682
VB IDE Full Screen (Update #2)

This little AddIn toggles VB's code pane windows between normal display mode and full screen display mode. Simply compile the .dll into your VB folder and then use the Add-Ins manager to load it into VB. Updates include: safeguard against accidentaly closing a codepane or VB while in maximized state, and an emergeny fallback in case VB crashes while maximized. So the necessity to manually re-do the registry after a crash should have gone. Some of your feedback suggestions have also been added.

2_2002-2004 #114837
Sort without sorting (one million elements in 3(!) seconds) Update

This Sort-Class can be used to retrieve the elements in a one-dimensional table of strings in either ascending or descending sequence. The table itself is not altered in any way by this process, rather pointers into the table are returned which point to the elements in the table in the requested order. Tests on a 1800 MHz Athlon processor have shown that the Sort is in fact the fastest I know, sorting 100,000 elements on a five byte random sort key in under 0.3 seconds. The speed varies only very slightly with the number of elements to be sorted, so one million elements take about three seconds to sort. Any special presorting has no measurable effect on speed (Quicksort by contrast is almost killed by a presorted sequence).

2_2002-2004 #114921
A Standard Message Box with TimeOut

This is a normal Message Box, but with a timer which will make it disappear after a certain amount of time. The return value depends on whether the user clicked one of the buttons (when the normal MsgBox return values are handed back) or whether the box was closed automatically - in this case a zero is returned.

2_2002-2004 #114970
The trouble with VB's Recent Project List is that...

...it is untidy and unsorted, it grows until you can't find anything, it does not remove broken links, and last but not least the window is way to samll to display long pathes. So what we need is a little helper to tidy up and sort VB's Recent Projects List. And wouldn't it be nice if you could launch VB with an open project inside it right from the beginning? Well, try this one - download is only 14 kB.

2_2002-2004 #114990
Ulli's VB Companion AddIn

(formerly IDE Mousewheel Support and AutoComplete) This Add-In adds configurable mousewheel support and a few other goodies to the VB IDE. Check it out; download is only 80kB (the best 80 kB you ever downloaded *g*).

2_2002-2004 #115062
Treasure Chest (DirectX)

Remember the old days when the Black Avenger of the Spanish Main (alias Tom Sawyer) roamed the Carribean Seas and spread terror among his foes? Well, this is what went overboard one day and you are the lucky one to find it.

2_2002-2004 #115196
KnightRider ActiveX Custom Control

This is a KnightRider Custom Control with customizable Back- and ForeColors, Size, Speed, and Effect. The appearance and effects can be viewed in the IDE; that is it is already active in Design Mode :- just set the Enabled-property to True. It was inspired by a previous submission to PSC.

2_2002-2004 #115349
TriState InputBox

With the InputBox you cannot distinguish between the cases a:- Cancel clicked b:- nothing entered and OK clicked because in both cases the returned string is a vbNullString There is a simple trick however as is shown here

2_2002-2004 #115355
Sizing Grabber

Would you believe that the sizing grabber - that is the little triangle in the bottom right hand corner - is in fact disguised a scroll bar? Well, have a look...

2_2002-2004 #115382
Ulli's Profiler AddIn (Update)

This AddIn will put all necessary instrumentation into your project to create a run profile. Then during execution profile data are acquired and finally evaluated and shown. New: You can now also replay your program code execution at different speeds. Update includes breakpoints by count and a bug fix by Roger G.

2_2002-2004 #115398
Radix Sort (JunusSort revised)

Very fast integer sorter. Using 1800 MHz Athlon processor will sort ten million integers in just over three seconds. (see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=59491&lngWId=1)

2_2002-2004 #115422
Terrain Triangulation

This creates a triangulated terrain model from samples taken in the real world. Samples consist of x-, y-, and z-coordinates taken at arbitrary points in the terrain during a survey on site or during a satelite or airborne radar survey. The project shows several methods and techniques regarding trigonometry, maths, and transforming/projecting 3D entities onto a 2D drawing canvas. Some documentation and the basic theory about the triangulation process is included. Download is 77kB.

2_2002-2004 #115433
Nested Arrays Solution

Example

2_2002-2004 #115486
LED clock (a little shorter than god's)

In one line - well, with a little cheating ;-)

2_2002-2004 #115530
Yours Truly - Rnd (updated)

This little code snippet returns a truly random sequence of Rnd's

2_2002-2004 #115637
Ulli's Code Formatter V2.19.3

This Visual Basic Add-In will format your code for a generally accepted indentation - one tab per structure level, the tab width being obtained from the IDE. It will also check your code for some of the most common ommissions and traps. Included are a Code Printer, a Copy Facility, a Code Structure Viewer and an option to create WinXP manifest files and to modify your code to make use of them. Simply compile the DLL into your VB directory and then use the AddIns Manager to add it to the AddIns Menu.

Languages
Top Categories
Global Discovery