Results for "Category: Custom Controls/ Forms/ Menus"
API-ListView usercontrol with most commom features (no dependencies -> thanks to Paul Caton for his great self-subclassing usercontrol template [CodeId=54117]). __________________________________________________ Notice: 1) Column, item and imagelist-icon indexing is zero-based. 2) Sorting: user should create a 'private' array for storing current column sort order (Ascending/Descending: 1/-1) -> Switch between sort order. 3) Items/SubItems do not allow custom font appearance (Bold, Color, etc). -> This needs custom-draw routines. 4) All properties are 'run-time properties'. __________________________________________________ Update 09/07: Added basic custom-draw support (for [Details] mode). Now, you can easily create a highlight effect (row and/or column). Enable RaiseSubItemPrePaint() and respond to OnSubItemPrePaint() event. __________________________________________________ Update 09/08: Custom-draw fix. Crash when XP theme enabled (Thanks to Dana Seaman). __________________________________________________ Update 12/09: Second and last fix for XP. __________________________________________________ Compatibility: in principle, all systems. // 33Kb zip.
Basic FolderView user control (only standard folders). // 21Kb zip
Nothing special: This is a simplified version of a custom control I've been using in several applications. cDIB class has been revised (supports all color depths) and new functions added. For NT users, new StretchBltMode parameter (Paint() and Stretch() functions), allowing [Halftone] mode for API-dithering (ordered dither). Note: If you only want to preview images, pass [Force32bpp]=True (->CreateFromStdPicture); this will improve zoom/scroll behavior (specialy on palette based bitmaps). // 14Kb zip
Make your own slider. Complete graphical slider control: Vertical/Horizontal orientation, ShowValueTip option, [Long] range... Sample project and some images included. __________________________________________________ Re-coded: 2005.05.29. OCX to private usercontrol.
A complete graphical button: Automatic 3D colors, all standard picture types supported with transparency ability, justify and alignment options, MouseIn & MouseOut events... __________________________________________________ Re-coded: 2005.05.29
A ListBox control with cool effects. Sample project demo.
This control joins ProgressBar and ScrollBar: 1) Choose back picture and 'fore' picture. 2) Select scroll orientation. 3) Set Min and Max values and 4) Choose caption format... Sample project included. __________________________________________________ Re-coded: 2005.05.29. OCX to private usercontrol.
Simple button control. (Re-coded: 2003.02.18). Zip 8Kb.
This is a custom EditBox that has all features of a textbox in addition to new and standard features like automatic undo, cut-copy-paste, replace and find strings, etc. The interface is specially worked out to be simple yet appealing, with a customizable margin colour, separator, etc. In the OCX project there are two controls one is a multiline textbox the other is LineEdit that is a single line box.
This shows how to Split MDI Forms. Actually there have been a lot of spliiter demos and controls but rearely some have dealt with MDI forms which this one goes in-depth on. There is DragBar highlighting, Title bar colour grading, and more - only uses a timer and a nice API call.
This is a complete TextBox in pure code without any RTF box or anything. It supports custom colour coding, and lots more - now even comment colouring. Also supports external draw events. The Demo is a Java IDE.
This is a label resembling LiteStep's labels. It stays on the desktop and shows system information such as memory usage, CPU usage, Time/Date/Uptime (with user-defined formatting), Active window and Active task, Multiline text, Computer name, Windows version, Processor type, etc. Full support for displaying as many images as you like within the label (e.g. icons). FULLY TRANSPARENT, if you like; or can be made to display a custom BackImage. Supports multiple profiles, so you can load more than one label with different info displayed on each. Shows CPU Usage as graphical progress bar as well. User-specified co-ordinates & size, image co-ordinates for each image, and co-ordinates for the CPU graph. (The included screenshot is within LiteStep, but SysLabel looks the same under a regular Windows shell as well).
Make cool custom buttons using only VB intrinsic controls. 13 types of buttons. Check out the screenshot.
A function to make CommandButtons flat. Easy. No API's, OCXes etc. Just pure VB.
Visual Basic will allow us to add control array to a Form at run time using the load statement. However with this code I will try to explain a way where you can dynamically add a control array to a Form at run time, and then catch the events generated by the added controls.
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.
'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.
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)
Style Sheet your apps OK, OK it's not exactly CSS. However, if you want to have orange frames and purple buttons at design time so you can see where those anoying borderless frames or flat picture boxes are, and then set it all to look pretty again at run time, without spending your life setting "back color" values and "font size" properties then this is a simple piece of code that might help.
This simple program shows how you can prevent anyone from using an illegal registration code that was generated AFTER your shareware program has been released. The user must have an active Internet connection when he starts your program. However, you can put checks in other parts of your program also. You must have web space to place a text file of the illegal names/codes. Sample program is included.