Results for "Category: Custom Controls/ Forms/ Menus"
A function to make CommandButtons flat. Easy. No API's, OCXes etc. Just pure VB.
I wanted to share what i have learned about supporting XP themes in your existing apps. Note that the themes will only be visible if you are running Windows XP. Any other OS and they will look as they did before. First, make a manifest file for your app. This is fairly simple and samples can be searched for at PSC (go to http://www.planet-source-code.com/xq/ASP/txtCodeId.27928/lngWId.1/qx/vb/scripts/ShowCode.htm and that code will generate one for you). The second thing i learned is that certain controls, especially the option button, will not show up correctly in a frame(ie ugly black box around the option control). This can be resolved by putting your control in a picture box inside the frame. Second, a command button that is set to graphical style will not show up themed. The button has to be a standard style. Note that this property cannot be set through code, it has to de done via the properties in the IDE. Hope this helps.
Custom Button with resizable images. Styles: Flat,OfficeXP,WindowsXP, NoBorder Properties:Transparency,URL,Bevel,LongCaption Wrap,MaskColor... and more
I got irked at the way the standard CommonDialog control responds to multiple file selection so I wrote my own. This one mimics the standard CDialog but has some extra features. Properties: Cancelled = true after showopen if user cancels DialogCaption = Caption of the dialog DialogX & DialogY = position of dialog DirectoriesOnly = browse for directories FileCount = Number of files returned after Showopen FileNameArray = Array of filenames returned Filter = filter as used in normal common dialog e.g. "All Files|*.*|Text Files|*.txt|Executables|*.exe" FilterIndex = Which of the above to start with e.g. 0 would refer to All Files, 1 to Text Files, etc InitDir = specifies initial directory to start, must exist ShowOpen (method) call the dialog You can customize this anyway you see fit. One thought would be to skin the Dialog form or add properties for fonts, fore & back colors, etc. I included a test project but you must first compile the ocx to use it. The ocx is in the zip but PSC may remove it. Enjoy.
Add HyperLinks to your VB programs easily! Control Itself manages to open the target - any Program, Document, Web Address, Email Address.....are fully supported. Looks like a real web Hyperlink, uses appropriate mouse pointers, underlines or changes the font color on mouse hover. Provides like MouseHOVER, MouseLEAVE and RightClick. New programmers can learn many things....(1) How to open any document or URL in its default associated program....(2) How to give mouse hover events in VB controls, and many more. A very useful and handy control, please vote or comment it.
Code for an owner drawn Progress Bar control. The Progress Bar itself has various display options including 6 border settings, 3 distinct display options which are completely customizable, and the ability to display text. The user control uses no intrinsic controls (except a timer) and uses 36 API calls to control the display. Commented!
I have been able to find many Splitters that would split two areas on a single form, but what I needed was a Splitter in the way of being able to resize a control that was Right Aligned to an MDI Form - in this case, a PictureBox. This can easily be adapted to the Left, Top and Bottom. Check it out, it is worth trying. I am working towards making this into an ActiveX control once I have the logic nailed down. I'd appreciate any votes that you might feel like giving.
This is a full customizable message box. You can make your own form design, buttons, icons, sounds and buttons caption. Thanks to David Crowell ([email protected]) for his excellent DWButton.
This code demonstrates how to add new menu items to a form's existing menu at runtime. It can be easily modified to add new menu items to other programs' menus as well.
Now you can add resizable panels to any MDI Form. This control allows you to place a resizable panel on a side of the form and looks just like the resizable windows in the VB IDE. This is still a work in progress, as I plan to add some more exciting new features. I would appreciate feedback and comments.
Simple Scrollable View Port control. Just a control container with scrollbars. My first submition. With enough requests/input, I'll add events and/or other properties as suggested. If you like it, vote. (Updated with a fix for possible graphical glitches at design time and redundant code.) UPDATED 1/8/03 - now allows positioning of scrollbars.
This code can turn off the focus rectangle of a button. It is very simple to add to your own application, and very small.Check out this cool effect and vote for me!
Provides developers with a customizeable DIP switch control common in many hardware applications.
This control creates a splitter bar with 2 resizable panels. The panels are adjustable by a specifying the size of the Child1 panel through the PanelSize property. It also includes minimum and maxmimum size parameters. It is well commented and also provides a demo application to explain all the options. I would also like to thank Mark Joyal for his great SplitterControl on which this is based. His control provides a way to resize based by a percentage, while mine provides a way to resize based on a size value. Since this is my first Active-X control, I would really appreciate your votes and any feedback you can provide.
First off, This is my *FIRST* OCX file.. So don't laugh too much.. You can have a back image, change fore/back color Bar can go: Up>Down, Down>Up, Left>Right, right>Left You can set a caption: ie Loading.. (51%) instead of 51% You can show or hide the % (ie standard Percent bar or most install's percentage bar)
New version at http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=24869&lngWId=1 With this control you can flicker free animate multiple text lines. You can animate position, rotation, size and color. During the animation every text line is clickable.
Ever wanted to display graphical information about CPU, memory or any kind of variables? Check the screenshot and you'll know what I'm talking about. This PURE VISUAL BASIC made control adds graphical diagrams to your Visual Basic application very easily!! Just under 10 lines of code, and you have very cool graphical diagram monitoring your variables! All colors can be set easily. Also includes many other options to fit your app. Is you find this useful, please vote me or give me feedback.
This demonstrates how to use the windows api to dynamically (and quickly) reshape a form without hogging resources. It Doesn't Even Blink! PLEASE VOTE!
Background coloring tool for shading forms and fading a color from top to bottom. Colors are chosen using a color slider.
Sample Menu Program to show 3 different ways to highlight buttons when mouse moves over them