Results for "Category: Custom Controls/ Forms/ Menus"
Ever tried puting a menu on a form with a skin? It puts a title bar at the top. With my code you can put menus on forms that you don't want to have the regular title bars on. I used some code from PSC on my skins. This is really good code. Please give it a good rating and leave feedback.
Simple timer class using GetTickCount API function, similar to standard timer control. Accepts long interval. Perfect for forms and/or user controls. Generates ONTIMER() event. Credits to code published by Riaan Aspeling in PSC, thanks Riaan.
I made this code because i wanted two controls to be in sync. So instead of making a new control i just moved it around the forms. This way i didnt need to update another control. I hope somebody will find it helpfull.
A popup color selector active-x control, similar to a combobox, featuring 12 different palettes, and 2 color selection events: Click() and Change(). The popup window can be disabled, in which case the popup()event may be used to substitute your own color selection code, or access to the common windows dialog. Hue selection is done through mouse hovering using custom timer class. Credits to various PSC contributors as listed in the text file. Uses 12 API functions. Full source included - well commented. V1.1 now includes hWnd property. (Thanks Ross McCawley!)
My first submission, this code is a multi-purpose skinned graphical form. Sounds pretty standard, but this one is RESIZABLE TO ANY SIZE. It teaches you how to use Regions (for shaping forms) and also how you can keep the size down of your program by using "Image Blocks" to make up skinned dialogs (positioning and streching images to make a dialog). Take a look - it's well worth it. And I know people always put this on their submissions, but PLEASE vote and leave comments and/or suggestions. If you're a contributer to Planet Source Code, you know how much you value feedback. If you're not a contributer, I can assure you that if you were, you too would want people to give suggestions. Enjoy!
***********Default button bug fixed*********** This is a custom message box generator.It provides the following functionalities that are not provided by the MsgBox function in VB. 1.Allows you to change the font of the message. 2.Allows you to change the font color of the message. 3.Allows you to set italic font for the message. 4.Allows you to set bold font for the message. 5.Allows you to change the caption of the buttons. 6.You can have as many buttons as you want on the message box. 7.The Message box has a totally new border style. 8.You can also set the AutoUnloadTime so that the MessageBox will automatically terminate when the specified time had elapsed returning the first button value. 9.The MessageBoxEx function used to create the messagebox returns the number of button pressed starting from zero. 10.Use the AddButton method to add as many buttons as you like. (Max 255 i think this is more than enough.)
this code is a slight modification of the menu ocx. created by vbaccelerater. it give menus a windows xp appearance. it does this by placing a background image, chnaging the starting position of the menu separator line and changing the color of the highlight. you will need the subtimer dll, i have included it in the zip file along with the original vbacceletor code. please do not vote for me since this is really not my code. enjoy.
This demo code shows how you can put progressbars into a listview control. Same principle works with other controls,too. For example commandbutton, picturebox or combobox. Works with horizontal, vertical and keyboard scrolling. Changing the column size is also no problem. This demo uses subclassing. I used the subclassing control by SoftCircuits. You can get it for free at http://www.softcircuits.com. Or use your own subclassing code. It should be no problem modifying the program to get it to work.
Update of the Usercontrol that emulates the menubar on the side of dialogs on system using the newest version of comctl32.ocx (I think). vbaccelerator image list is now built right in through a class, so there is no need to distribute his ocx (Steve mcMahon). Header and scrolling have been added to allow for a light emulation of an outlook menubar (only one bar though). Allows changing of backcolor, forecolor(text), Header Forecolor, Header Caption, and toggling of Scrollbar and Header Visibility. Also allows for images to be loaded from file and from a STDPicture object. If you are wondering why I went to such lengths to include the vbaccelerator image list in a class wrapper?? it supports color depths up to 32 bit, try that with the normal MS image list!!. All in all a nice control with a pretty small footprint.
lightweight compile in display bar... give users something to look at while they are waiting...4 animations to choose from..adds about 16k to your exe. Dont forget to check my sight for more stuff: http://geocities.com/dzzie
Draws a B-Spline over a PictureBox while the user inputs a series of points with the mouse. It also allows to drag the Control Points of the B-Spline to modify it
How to prevent a form/app from unloading , even if you use the taskmanager? Then try this code... (It works for me ;)
This function create a transparent area of dirrent shape (such as rectangle, Circle) in your form, you specify where and how big the hole is. Unlike most other trnsparant routine, this one not only let you see trough it, but also allow you total access access the things in the hole!!! Of course, You can make the entire form transparent or make you form C - shaped! Fully tested in VB5 and VB6.
It's a coolbutton. :) Those flat things that MS uses now. This one supports setting images for mouse over, mouse down, mouse up, drawing bevels for those 3 states, setting the colours of the bevel, automatically generating the mousedown and mouseup images by varying the brightness of the original, setting text positioning... lots of stuff.
This code animates a glass cube moving on a picture in real-time. Almost the same as that Windows 95 screen saver (the moving glass boll). I though this code can help make a screen-saver like that. (You have to e-mail me a copy of that screen-saver please)
This code lets you to Print, Save to file, Load data from file to/from ListBox or ListView object.
This code allows a ListView control to be sorted by Number or Date without having to use APIs (except to lock the screen)
A simple Bezier spline implementation. Allows the user to select control 'points on a picture box and then draw a Bezier curve between them. NEW!! - User can now move control points!!
With this code you can place any Icon in the title bar of any Window, just by reffering to a .ico file or to the position of the Icon in a DLL.
Add knobs to your audio/other app. Choose from 0-10, 0-100, and 0-1000. No *.bmps, simple circle and line. 5 sizes... MUST SEE... ;)