Results for "Category: Custom Controls/ Forms/ Menus"
The HC Draglist is a listbox that adds the ability for the user to drag the items to a new location. When the user starts dragging an item, an arrow will appear next to the listbox and as the user moves the mouse up and down, the arrow follows. When the user stops dragging, if the arrow is not where the item came from, that item is moved to the location of the arrow. You can also set the tabstops. This is a good example of a subclassed control. Should be simple to understand. It is VERY similar to the ccrp Draglist, but with this one you get the source code, and it is more than 50% smaller when compiled.
Ever wanted to see a picture behind flexgrid text (not a single cellpicture!)? This project is a little part of my custom grid control. Picture idea was given by a questioner Experts-Exchange site. Please let me know your ideas and let me know if you want to have a more flexible FlexGrid control code. Enjoy. Suat Ozgur
This is just a short example of how to create and use control arrays
It just pops down a bar when you put the mouse at the top of the screen. it then detrects whether the mouse is still on the form, if it is not it hides the little bar.
The purpose of the code is to determine the height of the taskbar so that you can display a form at the bottom right hand corner of the screen everytime.
This code causes the form's TitleBar and the form's TaskBar Window to Flash.
Add Wav Files To Your App. This sample is in .zip formatYou need a versio of Winzip to open it. You can download it @winzip.com
Changes the Ugly Standerd Look of the Form
Custom Button with resizable images. Styles: Flat,OfficeXP,WindowsXP, NoBorder Properties:Transparency,URL,Bevel,LongCaption Wrap,MaskColor... and more
Major Updates...Now, Picture shadow on OfficeXP buttons, easier button setup...etc.
This is a splitter control with 2 panes. I found the initial code out on the web somewhere, but it had a few bugs and was missing a few features I wanted, so I added the ability to colorize the splitter bar and the code now fires an event when the splitter is resized to allow for controls within controls to handle a resize. I also cleaned up the code and fixed a few bugs. BTW : You can add splitters within splitters to create more than just 2 panes.
This is a form based custom message box. It uses a simple API call to extract icons such as vbInformation, vbExlamation, and etc. (you can even adjust the location of the icon on the form) to simulate a msgbox. There are less than 20 lines of code for the API call. This is pretty cool. So, check it out. I got this tip from a VB technical journal.
This will show you how to Resize Control on a Form Regardless of how many controls there are Limitations are Menus cannot be resized along with controls such as CommonDialog.
BarChart.ocx is a bar chart control for stock market/commodity markets, etc. Full source code. You can chart the open, high, low and close, the median and/or any other value you can think of.
This sample add icones in the menu of your program but not use any API. The methode is only based on Imitation, very simple but good effect.
A while ago I was developing a dart statistics program, unfortunualy sometime later I stopped developing. But I already made an control to handle the dartboard. It's not completly finished, I still have to add a dart throw animation in it. But still I think it's ready for use. Some features: - Board is resizable - all colors are adjustable - all ring sizes are adjustable. Throw dart: - by mouse clicking on the board - by entering the darts x,y location - by entering the darts value. I found it a waste of good programming to leave it on my computer without any use. I hope some of you can use it in your own applications. If someone can send me a good animation of a dart in flight, I would appreciate it and I would put it in the control as well.
Do you also think, that the normal CommandButton is a bit ugly? Here is a Button of the next generation...check it out!
Have you ever wanted to make your form's shape odd? Ok, there are several samples and programs around that can make your forms like a shape(circle, rounded box or something a little bit more complicated). But here is the example to make your form's shape to be ANY TEXT, in ANY FONT, in ANY SIZE and also any two colour's gradient. It's a really good example. Imagine you can shape the form not to be just plain text, but the shape of special fonts(such as Windings and Webdings). Just change the GetTextRgn function's variables(Font, Size, Text) and the variable Color1 and Color2. Easy. And the result is outstanding! You can also use the Chr$ function to add a text(this is useful for spec. chars).
Yes! A module that creates gradients! This BAS file will seperate a color into red, green, and blue with one sub, then create a gradient in another. This BAS allows horizontal, vertical, or circular gradients to be created for your VB projects easily! It also has a quality feature, if your gradient is particularly large. This BAS can write to any control that can be drawn on. No API! UPDATED!!! This code can now create a gradient in ANY SHAPE OR SIZE!!!!!!!!!!!! Also added in the update: Common Dialog boxes for color picking, click the from and to boxes showing the sample color to get a common dialog for the appropriate one. Also new, is the feature to save your gradient as a bitmap file!
This UserControl will take the existing Picture on any form and cut out the form wherever the MaskColor is found. This method is MUCH quicker than the pixel by pixel region creation I've seen on several sites. Features an AutoDrag property to allow the form to be dragged without a titlebar. Also features a PopupSysMenu method to activate the form's system menu at specified coordinates. No need to remove your Titlebar, TransForm cuts that out too, but it's still visible on the taskbar if you want. Comes with full source code and a demo project.