Results for "Category: Custom Controls/ Forms/ Menus"
How do I get my application on top?To make your window truly topmost, use the SetWindowPos API call
This code is reusable and small enough to paste into whatever you're doing and instantly have a form that has no need for a title bar.
You can achieve some cool form wipes with judicious use of the Move method. For example, to draw a curtain from right to left use this routine. It is also possible to wipe a form from bottom to top, and from both sides to the middle, using similar routines
The primary focus here is to allow you to display forms that are larger than the screen can show. Need an 8½" x 11" Form? NO Problem!The size used in this example is 8½" x 11", but it could just as easily be landscape, envelope, or any needed size.
Although using the API is a nice way to create multi-colored forms, there might be a reason why you would wish to create one without using the API.
The DegreesToXYsubroutine, calculates the X (horizontal) and Y (vertical) coordinates of any point, measured in degrees, on the circumference of a circle or ellipse.
Drop in OCX control adds an alpha-blended shadow to the bottom and right borders of the containing form. No properties to set or code to add! Just drop and go. Fixed in 1.1 - Shadow artifacts are no longer left on forms brought to the foreground and the shadows are now correctly repainting when bringing the containing form to the foreground.
This is the latest version of Dynacom, the combobox replacement. Its even flashier because it can now even autocomplete while you type, just like the internet explorer address bar, and even find list entries by string!!. There is a list of all the user accessable member subs/functions and events inside the zip so check it out before you look at the source. Check it out!!!
You can use FM20.dll library from Microsoft forms 2.0 for create easily Multi-Column Combo and Transparent Text Box. It is too easy a cool!. Identical to appearence Microsoft Access forms. Rate mi code, please! See you later!
Whant to make your form on-top of of all other applications, well this is the code for you!
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.
Ever wanted to rotate your text this is the code for you. Its pretty cool!!! Plz vote & comments =)
This is an amazing spiral creator. So simple yet so complicated! Look what you can do with a simple PictureBox! Look for yourelf in my screenshot! Please also vote and add comments =)
ADDED: AutoHide features. Control can be downloaded/viewed from: http://www.planetsourcecode.com/xq/ASP/txtCodeId.24861/lngWId.1/qx/vb/scripts/ShowCode.htm
This is a slider control i wrote becouse the standard slider control isn't very customizable, with this one you can choose the background color, set a background picture and more...
This class allows you to replace the standard Visual Basic menu with one that supports many more features, some of which include: Addition of bitmaps or icons to menu items (supports any size). Optional MonoDefault state will only colorize icons of menu items that are selected (a la Outlook Express) Extended keyboard shortcut keys, using Ctrl+, Shift+, Ctrl+Shift+, combinations, function keys, system keys, the menu and print keys, and the CapsLock key. Draws in the style of the Office 97 menu bar. Implements Visual Studio-menu style check marks and radio buttons. Implements Hot-tracking, Hot-lighted and Clear-box highlighting visual effects. Implements a "CaptionSeperator" item-type which is a Seperator Bar with scaled, centered text and optional background coloring and submenu support. Implements Color-select, a type of highlighting that lets the highlight bar be different than the system default Background gradients Multi-line menu items DBCS (Unicode) support for languages such as Chinese Each feature is Item-by-item. You can have a whole menu full of items that colorize or highlight differently. Version Upgrades: 4.1 (07/01/2001), 4.0 (06/18/01), 3.0 (02/22/2001) and 2.3 (10/28/2000): New Features include: Each item may have its own Font, right-justification of menu items, and support for menu breaks and menu bar-breaks. In Version 4.0, the object model was completely revamped and simplified, developer documentation is now included, and a number of new features, such as support for background gradients, multi-line menu items, and Unicode, were added. Version 4.1 adds Office XP style flat menus.
This code cn be used instead of a title bar on a form. It allows you to make your software look sort of like a Mac OSX application.
although i am in mailing list of PSC for over a year, i decided to upload one my codes that i think could be useful for someone. it's a very cool digital marquee. it supports 5 different colors, scrolling direction, interval... pretty good for an application
Ever wanted to create a tray bar for your MDIChild forms that looks like windows tray? or just tired to use Windows menu to switch beetween child forms? or just want to improve the looks of your app... Here is an example of how to create a form bar (a'la tray) to place in a mdi form. it doesn't use any api to detect forms and stuff, only old fasion Visual Basic event model. all u have to do is invoke ONE sub to add a form to the bar, and the rest will be done automatically. I have tested this control only in a MDI app, you are welcome to try its functionality in a SDI app, and leave your comments. Menu functions are not implemented fully, cause i couldn't decide how... Well u can add a custom menu, but control doesn't raise any event when a button is clicked. It's up to u to figure out and implement such functionality. Have fun (and rate!!!)
*UPDATE 1.9b7* Added a system tray clone to it. Updated the demo to show how to use it. Added better color selection to it. Added the menu system, updated the demo to show this as well. *UPDATE 1.6* Added the AutoHide features that people have been requesting. The control now has 4 properties that are for the AutoHide feature: 1. AutoHide, Boolean This tells the bar to hide when the mouse is no longer over it. 2. AutoHideWait, Integer This tells the bar how long to wait before hiding (in case you accidentally move the mouse off of it, it wont immediately hide) It is in Milliseconds so 1000 = 1 second. 3. AutoHideAnimate, Boolean This tells the bar to "slide" off screen instead of just disappearing. 4. AutoHideAnimateFrames, Integer This is the # of frames to split the "Slide" effect into (more frames is slower, but smoother) I recommend 50 - 100 frames. From my testing it seems to be the best. *UPDATE 1.5* Fixed the icon drawing problems when comipled on windows 2000. Re-wrote a lot of code to optimize for speed, and to make the code easier to read/understand. Added a lot more and better comments. *UPDATE 1.4* Fixed the drawing on windows 2000/nt/95. Fixed the bar to work when used with a compiled exe. Fixed some drawing problems with the coolbar style. *UPDATE 1.3* Fixed one more windows 2000 bug. still having the compiled issue on win2k. Added a new style (now you can select the style property), Coolbar. *UPDATE 1.2* fixed the win2k bug. Now works perfectly in windows 2000. ADDED: Color settings, for every button state, and for the bar itself. Fixed many bugs (none left that I know of) Added the menu. Now when you right click on a button on the task bar, it shows the system menu from the form that the button belongs to. This ia fully working Taskbar for an MDI form. Works just like the windows task bar. It was originally written by Maxx Zephyr Technology and uploaded to www.freevbcode.com. That version had problems, and also was not a stand alone control, it had to be included in your project because it was dependant on the Forms collection. I went through the code, cleaned it up, removed the forms collection (used the api to replace it) and made the user control into a full stand alone ocx, that you can simply drop on an MDI form.