Advertisement

Results for "top"

2002ASP #4575
Occupied Space concept used to allocate 100 labels randomly w/o overlapping (no API)

Populates form area with labels, using the 'unoccupied space' concept, instead of intersection. Any added item, while populating the screen, takes a cell from the 'unoccupied space', resulting in a much faster process than intersection. Nice to see. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ idea proposed by Gunnar g68_se@yahoo.se, SECOND EMAIL: Pietro, one more thing: What i really, originally was thinking, was to be able to 1. Press a button, and choose a number to allocate, let's say 20 labels, then 2. Press the button again if one likes, and chose another number to allocate, let's say 12. .. .. 3. Press (any) more times, until the MaxObjectIndex is reached (or, when it's not possible to allocate more without collision). And then the question (from my earlier mail) would come (yes/no/cancel). The program would know from the first time, where to find the "unoccupied space". I guess this would take some kind of storing the occupied spaces or something if i should be able to use the code, it has to be done with (invisible) objects placed at design-time (100), not loaded :) I wish you many votes at PSC, i know you got mine ! /Gunnar. FIRST EMAIL WAS (which originated my post: How to allocate HUNDREDS rectangles (labels, images...) without overlapping, no API!): Hello Pietro ! I was studying your excellent code-example of the rectangle-Intersections. I got inspired by it, and i have a problem in my application, but i do not know how to code it, i was thinking maybe you could help me. * I have an array of labels * I also have a function to place the labels out randomly over the screen Private sub Place_Labels Dim lIndex As Long Randomize timer For lIndex = 0 To cmd.Count - 1 cmd(lIndex).Move (Rnd * (ScaleWidth - cmd(lIndex).Width)), (Rnd * (ScaleHeight - cmd(lIndex).Height)) Next End sub This procedure sometimes places the labels "on top of eachother". 1) I would like to add some code to prevent collisions, so that every labels is placed on a separate position. Maybe your code could help me here, but i do not really know how to do this, i think i'd have to go through all of my labels, and check if there is already a label placed there, but i have no idea of how to code this. Can you help me ? thanks in advance ! Best regards from sweden, Gunnar. ++++++++++++++++++++++++++++++++++++++++++++++++++ This program has been written down in Visual Basic 6. I hope yow like the effort, have fun :)

2002ASP #4814
SysTray With Popup Menu And OnTop

Put an icon in the system tray with popup menus without any ocx or dll. Updated to include the option of having your program be on top of all others, very simple to use. I'm not really worried about votes, but if this code helps someone new to Visual Basic I would like to hear a comment if it's not too much trouble.

2002ASP #4629
SysControl ! 2.0

This is a program that will let you show, hide, alter text, capture a picture, change the parent, kill, close, enable, disable, get info on, minimize, maximize, restore, capture a picture of, make them stay-on-top, send a message to, edit the window style, and flash the title bar on almost any target! The target can be selected by dragging the mouse from a button to the target or by entering a HWnd! It includes many more features and a complete help system. It also will list all the programs running on your system, will allow you to change their priorities, and will give you info on them too. The program can also perform a screen capture and can even highlight HWnds directly on the screen! It is excellent to learn by, and it's code is thoroughly commented and clean. Also, I would be grateful for any votes you feel fit to give me. I would appreciate them a lot, believe me!

2002ASP #4646
A Complete Multi Downloader (using multithreads)

This project downloads multiple files from the Internet(web) simutaneaously. I used multithreads to do it.       You can active up to 20 threads, that is, you can download 20 files at the same time. Or, you can specify how many threads are active to download files. It provides fast downloads.       Just drag and drop or copy and add URL(s) of web page(html page), image(graphic), mp3, zip or any binary/text file from a webbrowser and click Start! It supports http and ftp protocols.       You can open and save the list of download files(and save path) as a file(simple text file) and open the selected URL or downloaded file, using the popup menu which activates when you click the mouse right button on the list box.       The application window can be fully resized. When you exit the applicaition, it saves the form size and window position in the Windows registry. You can put the application window on the top which makes it easy to grab URLs from web browser. When you select or move the mouse over a download item on the list box, its save path will be shown in the status bar and list box tooltip.       I tried it can be a small complete application as I can. The zip file includes full source codes and an executable also.       This is my first upload to this great server. Many persons and their codes contributed to make my project. I really appreciate their efforts. I used and tried Winsock and Inet controls. They are good. But, finally, I found they are not suitable to just download multiple files as fast as possible.       I found I have to use multithread using an API download function. This project is the result of my efforts. I feel multi thread opens new horizon in my programming skills.       I hope my codes help you to control multi-thread or multitasking tasks when you need them.       Please, enjoy my code and program.

2002ASP #4673
Flickerless, Smooth Animation using pure VB with No OCXs, DLLs or ASM!

Added New - Fully Functional Screensaver with source using my animation technique! Also added one more new demo - Geometry. Flickerless, Smooth Animation using pure VB with No OCXs, DLLs, ASM or DriectX. Pure VB. This Entry gives you the code that I created and have used in all of my screen savers for years. The code included is pure VB code (with just a few APIs declared and utilized). Most of the code is in the "CodePage.Bas" module. This contains all of the initialization, variable definitions and declarations and animation code. If you like it, give me a vote or two. If I get votes, I'll know you are interested and I'll create a complete documentation package around this. Demos included are... Demo_BouncingBalls.exe - About 30 colored balls bouncing all around the screen (Source included). Demo_BouncingSantas.exe - Bunches of little Santas practicing thier jumping for the upcoming holiday season. Demo_Geometry.exe - Bunches of geometric images floating around the screen. Demo_UFO_ScreenSaver.Scr - Aliens have taken over your desk top. All Demos have full source code in zip format. UFOsaver.scr - A complete, fully functional screensaver using my animation techniques (source included)!!! Thanks. Doug Puckett ( dpuckett@thelittleman.com )

2002ASP #4721
Quick (Q) Navigator Ver 1.1 (Updated): The BEST WEB BROWSER ever posted on PSC

(Now the links are working) Q Navigator Ver 1.1 is an updated form of my Web Browser, which has the best features (and more) of all browsers. a) Better GUI, b) Better looking progress bar, c) Auto complete address, d) Select all, e) Find, f) text size, g) scrolling news, h) source, i) better looking history & favorites, j) mail, k) update, l) internet options etc. etc.: Other than ALL THE FUNCTIONS IN INTERNET EXPLORER, 1.You can store/jot down any required information while browsing, 2.It has a unique SEARCH facility where you can just give the word/sentence to search for and give the preferred search engine (you can choose to search from the best search engines!!!), 3.It has a "links" button that shows the number of links on the web page & the different links on the web page you are viewing, 4.Five configurable shortcut buttons: News, Download, Mail 1, Mail 2, Search, Easily configurable, 5.Scrolling News on the right top side when you are connected to the Internet, without losing any bandwidth 6.The best of all, this browser has a feature to backup and recover all such information when it crashes. When Q Navigator crashes (due to windows problems/software problems / etc.) Just go to Help > Help!!! And run the debug program .You can either Start debug program (in which it replaces corrupt resource files) or Only recover the browser (in which it recovers the lost information / URL's), which is useful for retrieval of lost web pages after crash. IMPORTANT: See "Readme.doc"

2002ASP #4869
[Ace]Page Number Printer v1.2

A simple program I wrote to print page numbers. This is the scenario, my 400 page project was thrown back at me with mistakes on 10 pages or so, and I have to reprint the page, ALONG with the page number ! It supports printing page number at the top of the page, at the bottom, and the 3 alignments, center,right,left. Support for auto increment page number in future, now I don't have the time for it... So if you guys really want it, just email me, and I'll have a reason to skip college h/w and do it, :P

2002ASP #4944
Snap you app to the side of the screen (like ICQ does.. Resizing desktop.. not just moving the form)

This code uses the SystemParametersInfo API to change the work space area of the desktop. You can make you app 'lock' to either top/bottom/left or right of the screen very simply.

2002ASP #5021
Lock-Out

This will stop anyone from accessing your computer. Compile this into an exe and remember that the password is password - DO NOT forget. If you forget the password then there is no known way of getting back in. You have been WARNED!!! This works by: hiding your cursor so that the unauthorised doesn't know where it is, puts the cursor in the top left corner of the screen and makes it stay there, fools the system into thinking the screensaver is running therefore disabling Ctrl+Alt+Delete, Alt+Tab and the Windows Key. If you put in the password wrong 3 times the system is forcefully shutdown. There is no way of getting round this that I know of without having access to the system in the first place.

2002ASP #4836
Savings and Loan Analysis

This code shows how to calculate loan payments and build an amortization table. It allows the user to include an additional payment, and calculates how much money is saved with the extra payment added. It will show you the total amount you will pay in interest over the life of the loan. The amortization table can be saved, modified, and printed. You can select a range of cells and copy them to the clipboard to be pasted into a different document. You can find what your monthly payment will be entering the loan amount, interest rate, and length of the loan or you can entering the a monthly payment, interest rate, and length of the loan and the application will tell you the total amount you can borrow. If you don't want to borrow but want to know how much you need to save each month to reach a goal, then this application will help you do that as well. It will even factor in cost of living increases. This application does require one custom ocx (vb5 & vb6 versions), which is included and needs to be registered before it can be used. Other FREE ocx's by the same author may be found at http://www.devpower.com ---CODING EXAMPLES---: MSFlexGrid, multiple instances of a form, IsNumber (Allow Dec Point), API Open, Save and directory Dialogs, return only the file name from a string, return only the path from a string, Arrange MDI child forms, Select a printer, print right-justified, print center, print a double line, print a footer, check for end of page, random access files, simple graph using just code, center a form, fit a form to the screen, vertically fit a form to the screen (all task bar aware), center an object within an object, make a form always on top, copy to information to the clipboard - Just to mention a few.

2002ASP #4948
Global Minimize to Tray v1.1 beta ** UPDATED ** (all code is here)

This app creates a new button (top right) for each window. This button if clicked on sends the app and all it's threads to the system tray with the correct icon. If you right click on the button, a list of already minimized apps comes up and you can select one and it will be removed from the tray and back to normal (or you can click on the system tray.. either way). If you use it for a day or so, you won't be able to stop using it. Although it is a bit hard to get used to. *UPDATES Since 1.0* ==================== - Multi-thread Windows now supported (ie VB6) - Added 'Balloon' Support for Win2000 users - Added Options Form (not much of an options form though) - Made much better about form - Removed many bugs (thanks for bug reports) - Zip file includes all files (sorry, had files in 2 folders for some reason) * Please leave comments on bug reports if any as I really want to make this app bug free. *

2002ASP #5027
CalculatorApp

I found a calc on PSC, Herman Lui´s, to which I added some functions. Such as, listbox to display your calculations/inputs, print receipt, ability to change layout during runtime. F-key, percentage-key, VAT-key functions. Allways on top. Help and aboutform. The objctive was that the user should be able to operate the calculator by using the keyboard. Of course the mouse works to. This Calculator is aslo included in my Financial Analysis App.

2002ASP #5038
Form Background Color

Background coloring tool for shading forms and fading a color from top to bottom. Colors are chosen using a color slider.

2002ASP #5044
Pageballoon **DESKTOP TOY!!!**

This is PageBalloon (v 1.1.6), its your very own desktop toy, you can chuck as many balloons onto your desktop as you desire, they are all skin mapped with ex acquaintances of mine. Its a must see, and a good screensaver replacement. they can wrap around the screen to float off the top and come up from the bottom again, they can also be kept ontop at all times. I have improved the movement function a little to cut processing time and speed it up.so download the code, comment on the code, and vote the code!!!

2002ASP #5059
Draw FORMATTED Text to any window with a hDc

Allows you to draw Formatted (diffrent fonts, sizes, colours) text to anything with a valad hDc - only tested against Screen Objects - Converts Font Object to LOGFONT struct IMPUTS: StdFontEx, Rect - Bottom Top Left Right, hDc, Text, Text Allignment Flags. Either provided as Paramaters of the .Draw procedure or as Properties of the cTextEx Object RETURNS: no Returns SIDE EFFECTS: no Knowen Side Effects Misc: you MUST pass a StdFontEx object as either a Paremter or a Property of the cTextEx object. cStdFontEx mirrors functonalaty provided by the StdFont object. i only added a Colour Property (it makes sence to do this) future revisions of this class will encorperate diffrent brush styles thus the reasoning for mirroring the vb font object

2002ASP #5328
Dockable Statusbar within MDI

Shows how to dock a statusbar control to the top-left-right-bottom of an mdi form, or make the statusbar detatch from the form and 'float'

2002ASP #5412
Fosters' Wife friendly Alarm Clock

I am often guilty of saying to my wife that I'll be on the PC for half an hour... only to get a knock on the door 3 hours later!! Not a happy wife! This alarm clock is the perfect remedy. You set a date/time and it sits unobtrusively on the screen. At the specified dat/time it will raise a message and/or play a WAV and/or execute an app on the alarm time! It's also has some excellent functions in it for file exists, registry save/get setting, wav playing, captionless form drag, stay on top, etc, etc

2002ASP #5463
MSN Messenger Alert Box

This project demonstrates you how to build an alert box like MSN Messenger has. It is displayed in the bottom-right corner of your screen. When an alert is shown while another one is still visible, it is placed on top of the existing box. By moving the mousecursor over the text it appears as a hyperlink. And to get a little bit of the Microsoft feeling I've added a simple gradient found elsewhere on PSC.

2002ASP #5561
Snake Game With Demo AI

NOT a beginners code I'm afraid. The game code itself is really intermediatary/beginner, but the graphics code uses a lot of api calls. The demo ai is fairly simple, but it's managed to get a top score so far of 240. My current best is a measly 170. Fully customisable, including play-area size, player starting and finishing speeds, ai speed (you can let it cheat). Oh yeah, please note that the ai enters it's own score unless you set it not to :) Any comments are welcome (so are any votes). Enjoy the code and feel free to use or distribute it.

2002ASP #5562
About Screen With Fading Text

This about screen scrolls text upwards, fading in at the bottom, and fading out at the top. You can insert this screen into any project as long as you also include the APIGraphics module. The Module itself contains some very usefull code for any program using api graphics. Any feedback or votes are very welcome. Thank you

Languages
Top Categories
Global Discovery