Advertisement

Results for "Category: Custom Controls/ Forms/ Menus"

ASP_Volume3 #45892
Awesome 3D Buttons! No OCX's

This is great! A 3D button with no OCX's or API's. Every thing 3D on your forms is just an illusion. Well, this one is a great illusion. Anyone can do it. Just look at the code and you will see how to use it. One button is fixed, the other one you can resize and move. Uses a regular command button and some lines. I hope you enjoy and can use this code. Please leave me some comments on what you think. Any way to make it better with out making it into an OCX. And if you already know how to do something like this, great! I don't need to hear from you with how badly it was done. Just let it go. Anyway, the rest of you, enjoy the code!

ASP_Volume3 #45893
Awesome Raise 3D almost any control! [FIXED]

Holy cow! This is awesome! This actually works. You can make almost any object or control in VB6 have a raised 3D affect. You have to check this out. You have to try it. And you have to help me improve it please. If you make any improvements, please re-upload it thanks. there aren't any comments in the code. I just threw it together. There is an example of how to use the True3D module. If you use the code, you have to just make copies of frmLines. that is where all the lines reside. This is why we need to make this better and easier to use. All forms were included in the previous upload. Just the project didn't load it for some reason. You could have manually added the frmLines after opening the project or you can re-download this updated project.

ASP_Volume3 #45894
Form Manipulator [Revisited]

If you didn't see my previous form manipulation example then you gotta see this. This is some pretty good stuff, great for newbies. New Subs added! Don't miss out on this, you'll be happy you looked at it. Code all done in a professional way. Extremely nice routines for simple manipulation of any form. Cuts down your own coding. Heavily commented subs so that you can understand what's happening. If you have any trouble with this example(which you shouldn't) then email me and I'll make even more comments on the routines as I add new ones. Comments definitely welcome. Please, Constructive critism and praises only. 2/10/00, new routines combined and added. All subs tested and compiled! And yes, I did add a sample of the CustomMsg becasue I got a few emails about it. I sure hope it helps you all out. Check out the "StreakExit" routine. If anyone knows how to make that routine smoother, please email me with a fix. If anyone has anything to add, email it to me and I'll add it in and give you credit. Please remember, this is beginner level. I really hope that you find this example useful. Thanks for your comments and enjoy the code! Here is a small list of the subs: 1. BooleanRollup 2. CenterSnglFrame 3. CustomAbout 4. CustomMsg 5. frmCenterMe 6. frmKillExit 7. frmOnTop 8. frmPosition 9. frmShrink 10. LoadNextToMain 11. LogMyErrors 12. NoOffScreen 13. ProgCaption 14. ProgCaptionV2 15. ReSnapFrm 16. RestoreFrmDiminsions 17. SaveFrmDiminsions 18. SaveFrmPos 19. StreakExit 20. vEmailMe 21. WriteSettings I really hope this helps the newbies out. This may be my last update to this project.

ASP_Volume3 #45931
Real C++ Buttons (Fixed)

Notice: THIS CODE HAS BEEN FIXED! PLEASE READ THE COMMENTS AT THE BOTTOM OF THE PAGE TO SEE WHAT WAS WRONG BEFORE. Create real C++ style command buttons with ONE line of code!!! You can use this code on any of your commands buttons. You will loose any images and the BackColor of the button, but that really doesn't matter because you can 'paint' images onto the button using the API. Make sure you set the style property to 'Graphical' or this will not work!. OK here is how it works. You see, by default Visual Basic's command buttons are drawn with the 'Default Push Button' style, which makes them flat and ugly when pushed. But when you set the style to 'Graphical' its really just a C++ button with a single pixel outline drawn around it. This code basically just stops the button from drawing that line to create a sunken style button. This code is not compatible with Visual Basic 4.0/32 because its buttons don't have the style property. However, in Visual Basic 4.0 you can apply the code to an option button and it will appear as a C++ push button (they both have the same basic events and properties: Click, MouseMove, etc...) which is a 'rigged' kind of way of getting it in to Visual Basic 4.0...hehe. I wrote this code because I got tired of all the people trying to create C++ style buttons with CreateWindowEx and Message Hooks, and all that other difficult stuff.

ASP_Volume3 #45934
COwnMenu - Make Office-style picture menus

To create an "Office-style menu" (or owner-draw menu) you must register that menu item with Windows as MF_OWNERDRAW and then process the WM_MEASUREITEM and WM_DRAWITEM messages sent to the menu's parent window. The attached project file simplifies this process by encapsulating all menu drawing operations in a class called "COwnMenu" and hiding the details of working with Windows in a code module entitled "OMenu_h." With this mini-system in place, all you have to do to get owner-drawn menus in your program is call SetSubclass on the menu's owner form and RegisterMenu to set a menu item as owner drawn. The provided example project contains complete documentation.

ASP_Volume3 #45936
LoadImage() to Fit

It's a single function, without API's, that loads an image and puts it in a destination PictureBox. If the source image is bigger that the destination PictureBox, then it will resized to fit in (mantaining the ratio). In other words, the image loaded will nicely fit the destination, but will not be deformed. If the source is smaller, then it will remain that size... This function is an upgrade (in speed, error trapping and results) of Jason Monroe original post. Thanks Janson.

ASP_Volume3 #45943
Calendar Class

Here is a Calendar Class that can be used as a replacement for the Microsoft one. No additional files have to be attached to your project, simply put calendar.cls(+two more support classes) in your project, stick a picture box on your form, write 3 lines of code, and you have a fully functioning CALENDAR with multiselect, dropdown and etc.

ASP_Volume3 #45972
Slave Form Demo

Among other things, this code demonstrates how to make 2 forms work together as if they were a single form. Make a form "hide" behind another and scroll down smoothly to reveal itself later. Also demonstrates how to make a custom title bar, the correct way to minimize an application, how to respond to the System Menu, and much more. It's hard to describe but it's well worth the download. Heavily commented code makes it very easy to follow what's happening. Votes and comments are appreciated!

ASP_Volume3 #45975
Auto Resize Controls in with Form Resize

When your form is resized, some of the controls contained there will be clipped (partially seen). This code tries to eliminate that by resizing all the controls in relation to the forms resized extent. The main routine will just have to be added at the FORM_RESIZE. Also supports MDI Forms. Enjoy!

ASP_Volume3 #45977
Fading backcolor

Make the backcolor property of a form acts like a VB-Setup Program

ASP_Volume3 #45980
ProgressBar in a ListView column

Here you have it the source code for adding a progress bar to a listview control, similar to Napster and iMesh. I have brought the problems down to one and that is the Horizontal Scrollbar so if anyone figures this one lemme know. The code now refreshes of of the WM_PAINT message so it's super effiecient. Happy Coding!

ASP_Volume3 #45981
Hotline Tracker Socket

This simple control simplifys the hotline tracker protocol so that just a few lines of code can list a tracker.

ASP_Volume3 #45984
Color Picker Example

Shows how to fill an Image Combo (part of Microsoft Common Controls) with each of the 16 standard colors to be used as a color picker such as in a word proccessor on the toolbar. All the images are created by code for ease of modification (As opposed to using 16 Bitmaps).

ASP_Volume3 #45992
hcDragList

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.

ASP_Volume3 #45998
Grid Background Picture for FlexGrid Control

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

ASP_Volume3 #46031
Control Arrays Demo

This is just a short example of how to create and use control arrays

ASP_Volume3 #46032
AppBar

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.

ASP_Volume3 #46035
TaskBar Height

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.

ASP_Volume3 #46046
A Flashing Form

This code causes the form's TitleBar and the form's TaskBar Window to Flash.

ASP_Volume3 #46057
Add Wav Files To Your App.

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

Languages
Top Categories
Global Discovery