Results for "Category: Custom Controls/ Forms/ Menus"
Learn how to make ur own screen saver lookalike with this simple code!!!! please comment and vote!!!
When making menus with Win32 API functions, have you ever wondered how to call functions when the user clicks on a menu entry? This code shows you how to solve that problem using subclassing, in very few lines of code :) Please rate this.
An example for beginners, showing how to use the MoveToEx and LineTo API calls. Gets the current time, converts it into (x,y) coordinates and draw the "clock"...DON'T FORGET: DON'T EVEN THINK ABOUT VOTING FOR ME!!!
Make a standard, ugly, Mscomctl toolbar control look flat, without extra OCX, and just one function call!
Complete ListBox tutorial all on one form! I included the following features of the ListBox control: Loading from file/Saving to file Delete Item Add Item Find Item Multi Selection Stuff: Remove selected items Copy selected items Select all items De-select all items Note: The file that is used for the file loading procedure is included in the .zip file. It is called Names.txt . Try adding lines to this file or even changing the code to open C:\WINDOWS\WIN.INI
This is a simple way to move the form, without the use of a staus bar! Just click and drag anywhere on the form. I also threw in an option to make a menu popup without the use of the menu editor! Shows how to view a menu, made by the menu editor, by clicking a command button! You can also apply this to almost any control.
This program draws a circle gradient wherever you click on the picture box. It uses the point that you clicked as the origin, and you choose your own colors and custom colors.
This combo box event handler will limit the text typed to only items available from the list. This essentially makes the control into a dropdown list but allows the items to be selected by typing as well as clicking.
On listview mouse down event, a textbox is moved to the selected listview item or subitem to be used as the edit box. The trick is to track the scroll bars to deduce which item of the listview is being clicked on. This is done by subclassing listview scroll events and retrieving the scroll bars info with API.
This is the coolest Progress Bar control you have seen out there. Includes many nice features. Can do colorfading, text scrolling, borderstyles, can be set vertical...anything you can think of. Besides that, the code is very efficient and fast. A good example on how an ActiveX / OCX is made and what it needs.
CooL Skinable Button (iButton) for any app. Just one UserControl in Exe Project and ready for use. (very, very good button , you MUST HAVE THIS - DON'T MISS). Enjoy!!!
Ver 4 Update on ClsPictureLoader. NEW Crop images before pasteing to RichTExtBox. OLD (But improved)Load picture to RichTextBox with resizing (width, height or proportional). Flip image Left-Right and Top-Bottom. Re-size inserted pictures proportionally with the class (better than doing it by the built-in RichTextBox behaviour). Export RTF document images to BMP. Improved interface with toolbars. Apologies to VER3 downloaders, I forgot that SavePicture is only BMP.
WindowsXP-like CommandButton, Or OfficeXP-like MenuButton, Or IE6 ToolBarButton, 6 Caption Area positions relate to Picture Area, 9 Caption positions in Caption Area, plus 9 Picture positions in Picture Area, add one picture in AddIn-Area, powerful control of Colors and image effects. NO Timer , NO ImageBox, NO Label, that is HzxY Button. This is a English version. If you don't understand Chinese, you can try this version I've Uploaded. BTW, I've uploaded my article to introduce my control. If you have puzzles in using HzxYButton, you can refer to my introduction.
Customize your menu with images. Just create a menu with the VB Menu editor. Add some PictureBoxes to your form and assign to the CMenu class. This class uses the whole region of the main-menu not only the regions of the items. So, if the window width changes, the background image of the main-menu also does. The screenshot shows where PictureBoxes are applied. UPDATE: Now using a better method for subclassing. A MsgBox blocked the WM_DRAWITEM message when running in the IDE and as long as the msgbox was on top, the menubar was grey. This doesn't happen in the new version.
Custom MessageBox Designer is Power Full MessageBox Designer That Enhance Functionality Of Statndard MessageBox Function Used in VB With Many Features you Can Add Check Boxes ,Time out,Positioned,Show Custom Buttons and Many More....
O.K. This is the debut of both jeffButton and jeffSplitter. =) jeffButton is a custom control replacement for the VB command button. The enhancements it provides are: location of the caption, providing for the "soft button" effect, and most importantly, automatically creating disabled versions of your button icons... just like the standard vb toolbar. However, I must state now that the API calls I use to achieve this are newer, and probably won't work in Win95 and potentially early versions of Win98 and NT. Works fine on current Win98se, WinME, and Win2K. Anyways... the controls also demonstrates the mouse capturing API calls. The button control also supports hot and disabled icons if you so wish to provide them. =) Addditionally, this project post also exhibits my custom splitter control. I think, at the least, you will find my approach unique. Again, this control demonstrates the mouse capturing API calls. You can set the splitter's orientation, and bounds. And event fires every time the bar moves, allowing you to custom resize controls at will... which is what I like to do. Most implementations I have seen of splitter controls that automatically resize controls for you aren't very complicated, or else they end up adding a lot of overhead. jeffSplitter is simply and based on Edanmo's VB5 ocx splitter controls which provide the splitter but allow you the flexability to implement your own resize techniques (useful when a frame or toolbar is resized in the same section along with a grid or treeview). =) Anyways... hope you guys enjoy my latest offering. I cut with my previous policy of distinguishing between public and private code on this project, so additionally, any of you code hounds out there will also find in this project a rich library of base vb functions and API function definitions and constants in the two files: tools6.bas and mapiconstants.bas. =) I use this module base in both work and recreation projects. If you like it or the latest controls, please gimme a vote. ;) (it don't take long to vote, honest)
Use a standard picturebox as progress bar. This progressbar : 1. Don't use much code. 2. Change every aspect of appeareance in a simple way. 3. Fast. 4. Easy to use, create a picbox and place the call for the single sub in a loop. 5. Don't Flicker... New in this version is : Select % display alignment, optional CustomString to add before % display (looks better when doing multi tasks).. 100% Compatible with previous versions. - Now.. go vote! .. (Screenshot comming soon)
'Explodes/Implodes' form. (Look at screenshot to see what i mean) Looking for a nice touch when closing you'r forms? Then this might be something for you. Creates a nice effect, and can easily be modified to suit special needs. It also shows how to stop user from closing form with 'X' in one small line.
A few ActiveX controls for you usercontrol folder including 2 types of ToggleSwitch's, A Progressbar, L.E.D., Custom CheckBox, And an easy to use SystemTray control.
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?