Advertisement

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

4_2005-2006 #152771
VertMenu - Outlook-Style Menu Bar (Honest version)

Recently a person calling himself Dustin Tinsley submitted source code for a UserControl to emulate the vertical graphical menu style popularised by MS Outlook. When I pointed out to him the amazing similarities between his code and one which had been written by one Robert L. Kubelka, and made available on other sites about three years ago - the similarities extended to such things as identically worded comments, spelling mistakes and even typos - he immediately removed my comments and any other subsequent postings. Ian Ippolito has since then deleted the code and I offered to upload the original. Should you feel this code is worthy of a vote, please do not vote for me - it is not my code (either!) - I'm sure the original author would appreciate a note of thanks. Thanks also to Ian Ippolito for keeping PSC honest.

4_2005-2006 #152777
BMP2ICON

I had always found it frustrating when I needed to convert a bitmap into an icon because popular software such as MSPaint or paint shop pro does not do it. Here is a small VB program that converts a bitmap to icon. Alessandro wanted to know if he can display the image before converting it. (Done)

4_2005-2006 #152782
Tech Menus 5.9

menu system

4_2005-2006 #152801
Form Effects

This project contains some nice ways to unload and load forms with some nice effects. The main functions are in subs so you can easily transfer it to your app and use it if you like it. I suspect it might look a bit fast because i have a slow processor and it seemed to look ok for me so you may need to adjust it. Otherways it is pretty simple and is eyecatching. I saw the same thing in another app and i liked the idea so here it is.. Please vote and leave a comment

4_2005-2006 #152810
XPButton

This is the XP Command Button recreated by me. There are 7 custom borderstyles and of course the original windows xp borderstyle. Like the original button it responds to the mouse entering and leaving. This button has the Default and Cancel Button property so it can be the default button. It also reacts very similarly to the original buttons. It has accesskeys set up so that any alt combo can make the control click (like standard buttons) You can choose gradient background or solid background (solid is fast, while gradient is slower) The great thing about this control is that I have seen other Xp controls and i have spent so much time making my one fast aswell as good. It can redraw at 2000 times a second (with gradient background) on my Pentium III 866 MHz. Similar controls I have tried redraw at 20 times a second. Please vote. I have spent a long time on this and I bope that you all like it.

4_2005-2006 #152811
XPButton 1.01

This is the XP Command Button recreated by me. There are 7 custom borderstyles and of course the original windows xp borderstyle. Like the original button it responds to the mouse entering and leaving. This button has the Default and Cancel Button property so it can be the default button. It also reacts very similarly to the original buttons. It has accesskeys set up so that any alt combo can make the control click (like standard buttons) You can choose gradient background or solid background (solid is fast, while gradient is slower) The great thing about this control is that I have seen other Xp controls and i have spent so much time making my one fast aswell as good. It can redraw at 2000 times a second (with gradient background) on my Pentium III 866 MHz. Similar controls I have tried redraw at 20 times a second. There are transparent corner pixels now and a few other things I changed which I don't remember.

4_2005-2006 #152825
Better moving form

While looking at somebody else's code, I noticed he was doing all sorts of stuff with the MouseDown and MouseMove events. Here's a better way, it captures the WM_NCHITTEST message which Windows sends to make Windows think the user is clicking on the titlebar, thus moving the form...

4_2005-2006 #152826
Flat menu

An example of ownerdrawing a menu. But, in contrast to most samples, this one also paints the border of the menu... Next on my list is painting bitmaps on the menu for full customization, but this is a little more complicated if the borders are more than 3 pixels wide... Hope this helps :) (btw, had people test it on Windows XP, worked fine too)

4_2005-2006 #152839
ThreeD Line

This code creates a horizontal or vertical line with a 3D look. You can see it almost in any Windows Application. This is dead simple code to understand. I saw the other 3d Line OCX in a code of the day, and it didn'y include source code. I hate including OCX's so I made my own. If you like this code, vote for me!

4_2005-2006 #152844
Transparent Form OCX

When this OCX is dropped onto the form, it makes it EXTREMELY easy to set the WHOLE FROM Transparent (well everything except the controls). It can also just set the container transparent (everthing except the controls and the title bar). Please give this a go and give m some feedback as i'm new to this stuff. NB: The original code is not mine i've just downloaded it from somewhere and made it alot better (well, i thinks so anyway). This zip comes with an example app and a compiled OCX.

4_2005-2006 #152845
Extending System Menu

This code example will append a separator and a new MenuItem 'Always on Top' to the system menu of any form. The menu is affected weather left clicked from the control box on the form or right clicked from the taskbar. Subclassing is used to trap when the 'Always on Top' item is clicked. The custom message handler uses the SetWindowPos function to keep window on top or reset it to normal. Also on a lark I traped out the close menu item to prompt before closing. If you say yes then the close message it passed otherwise the close message is traped out and the form stays open.

4_2005-2006 #152865
Skin forms

It allows you to skin forms. It wierd with the way i have done it but it works. Thanks for the people who put the code planet source code as it come sin very handy.

4_2005-2006 #152881
Exit Form

Quit your application with animation

4_2005-2006 #152884
Analogic Clock

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!!!

4_2005-2006 #152894
Double Dragon: Outlook Bar control + Photoshop Style Color Picker (now WITHOUT help file!)

UPDATE(2002-12-26): Version 1.3.2 Fixes incorrect painting and adds absolute positioning for tiled bitmaps. __________________________________________________ UPDATE(2002-11-12): Version 1.3.1 Fixes gradient fills under legacy OSes (NT 4.0 and Win 95). __________________________________________________ UPDATE(2002-11-05): Version 1.3 Label edit fully implemented! Brand new subclasser working ok in MS Office and VS.NET so this one should fix the problems. Out-of-focus mouse wheel support (Outlook style). OLE Drag&Drop of groups implemented. cButton.Key property synced with parent collection. New properties: LabelEdit, AllowGroupDrag, GroupHilightIdx. Additional background style: ucsGrdTileBitmap. Bugfixes (including cMemDC). Help file updated. __________________________________________________ UPDATE(2002-08-09): Version 1.2 Automatic OLE Drag&Drop fully implemented!!! New properties: UseSystemFont, FlatScrollArrows, WrapText. Additional background styles: ucsGrdAlphaBlend, ucsGrdStretchBitmap. Bugfixes and new samples. Help file updated. __________________________________________________ UPDATE(2002-07-24): Version 1.1 Help file included. Additional background options. cMemDC bugfixes. VB bugfixes: now icons can also be 256 colors and truecolor. __________________________________________________ This is a fairly complete emulation of outlook bar. This control is fully customizable and can emulate both outlook xp and 2000 button bar (see "more samples") and then goes beyond. Control customization is accessible through couple of property pages. Featured is a hierarchical model (much like CSS) for defining formats of control elements (including hover/pressed/selected formats on group/items) which can be persisted (an .obf file) and a polymorphic object model for representation of group and item buttons data. Multi-line captions, multi-line tooltips (API), large&small icon styles, single/double/fixed bordes, horizontal/vertical gradients. Help is to be done (generated:-)) shortly. OLEDrag&Drop is in its infancy but still workable. Also, here you have it: the *realtime* color picker re-submitted as part of the outlook bar property pages -- check it out it's fast! Also, check out the error handler (robust one) and the DebugMode object leak info system. Has been checked on win2k for GDI leaks (win9x to be done, anyone?). This is in response to recent submissions of "commercial quality" and "industrial strength" software to this site. Although not complete the project could easily become commercial one. Greetings go to: Ariad Software (now www.cyotek.com), vbAccelerator.com (great inspiration), and Carles P.V. (for his controls submissions:-)). Read readme.txt for the build procedure. Please report bugs and problems and leave your votes!

4_2005-2006 #152897
TaskBar Control

This is a UserControl i did for a recent project. It almost fully emulates Windows taskbar functionality. Written from scratch, uses heavy advanced API and subclassing. Code greatly inspired by submissions to this site and vbAccelerator.com. Everything is done the hard way, the way a VC++ programer would do it. And btw, lots of lame code here. Don't know why people upload so much rubbish. I'm a professional VB coder and maybe my judgement is too harsh :-)) Anyway, don't bother to vote but do comment here. Enjoy,

4_2005-2006 #152898
ListBox extension (grey checks)

UPDATE(2003-12-06): Off-by-one error when using large font sizes fixed. _________________________________________________ This is a class that extends standard VB.ListBox control when its style is set to 1 - Checkbox. In addition to the standard checked/unchecked states listbox items can be marked as unknown (greyed) too. Also, mouse clicks/dbl-clicks anywhere on the item are interpreted as selection requests. This behaviour closely emulates the listbox control implementation in the Outlook Categories dialog. Enjoy!

4_2005-2006 #152902
Subclassing Thunk (VB+ASM = Office XP Menus :-)) w/ Sample HookMenu 1.4

UPDATE(2002-12-13): Sample HookMenu 1.4 introduces RightToLeft forms support. __________________________________________________ UPDATE(2002-11-27): Sample HookMenu 1.3.5 fixes problems with MDI forms. Separators are reduced to 3 pixels to match Office XP ones. You can use DontHookMenu=1 when debugging and the control is part of your project. __________________________________________________ UPDATE(2002-11-23): Sample HookMenu 1.3.4 fixes troubles in NT 4.0, menubar background color in Win XP classic appearance and sub-menu arrow forecolor if menu text is not black. __________________________________________________ UPDATE(2002-11-21): Sample HookMenu 1.3.3 fixes an XP redraw bug, an accelerator (underlined) symbols bug and keyboard navigation in Win9x. Sample HookMenu 1.3.2 adds custom drawing of sub-menus arrows and fixes unicode strings support. Various fixes for Win95 support. __________________________________________________ UPDATE(2002-11-20): Sample HookMenu 1.3.1 fixes issues with WindowList menus and 3rd level sub-menus positioning. __________________________________________________ UPDATE(2002-11-18): Sample HookMenu 1.3 fixes issues with the subclasser (both in Win 9x and NT/2K/XP) so no more GPFs. Closer Office XP experience: menu colors are closer to Office values in 8bit color depth and in high contrast color scheme; menu shadow simplified as in Office in 8bit color depth; popup menus are positioned manually two pixels down; seamless shadow if popup is above the menubar. __________________________________________________ UPDATE(2002-11-12): Sample HookMenu 1.2 fixes the issue with TextBox popup menus (finally!). Some design time issues and menubar background color problems spotted by Ovidiu Boldea. Also, the property page is working more fluently now. I'm sick of win9x and so these are not supported from now on (ok, promise to do my best:-)). __________________________________________________ UPDATE(2002-11-10): Sample HookMenu 1.1 fixes issues in NT 4.0 and MDI child forms. Can anyone test the control under win95? __________________________________________________ This is a second attempt on moduleless window subclasser featuring "run-time dynamically generated machine code". The original was submitted by Paul Caton a couple of months ago. The present version is safer and is based on a completely rewritten assembly thunk. Also I have changed the name of the subclasser to reflect more closely what in fact it's doing. In addition to this you get the hooking thunk which (you guessed it) hooks windows hooks in a convenient and safe way. Both of the thunks' source files (assembly) are included. Both thunks are designed to be and have shown to be exceptionally safe in the IDE, they seem immune to both the end button and End statement - try to crash them and let me know what your results are. The screenshot is from a sample project (included in the zip) which subclasses a form's menus and turns them into Office XP clones - now it's not necessary to include 13000 lines of "supercode" to get the Office XP style menus under win 98/2000/XP/.Net Server (not tested on 95/NT btw). Enjoy and leave your votes!

4_2005-2006 #152909
Three-D (3d) Object Render (engine)

Render 3D Objects using a inputted list of vertices and polygonal planes on a X, Y, Z environment. Originally an Object loader for a scrapped chess game. Render in wireframe or vector shading. It's not very well remarked, but I'm sure most of you will understand it. I hope you like it.

4_2005-2006 #152923
no rectangular window with transparante bmp color

make a no rectangular window with transparante bitmap color same that k-jofol or over skinnable application with 2 api in a Dll.

Languages
Top Categories
Global Discovery