Results for "Category: Custom Controls/ Forms/ Menus"
Amazing new control! Tired of VB's common controls, check out this textbox! When it receives focus, the blinds open and when focus is lost, the blinds close again, creating a dazzling effect on YOUR FORM! PS - Dont worry, YOU CAN CHANGE THE COLORS OF THE BLINDS TO A COLOR OTHER THAN PALE RAINBOW COLORS :) I did that for effect.
The Switchboard:A method for handling subclassing in ActiveX controls f you develop ActiveX controls and intend to subclass or hook a window, you'll very quickly discover a problem when you attempt to site multiple instances of your control. The subclassing, which worked fine with a single instance of your control, now no longer works and is, in fact, most likely is causing a GPF. Why is this happening? The AddressOf operator requires you to place the callback routine in a module. This module is shared between all instances of your control and the variables and subroutines that the module provide are not unique to each instance. The easiest way to visualize the problem is to imagine a shared phoneline (or a partyline as we hicks call it) where multiple parties are trying to dial a number, talk, and hangup, all at the same time. What's needed is an operator, a routine that controls the dialing (hooking), the talking (the callback routine), and who routes information to the instance of the control that requested it. The Switchboard subroutine (see below) and it's supporting code provides a method for subclassing from multiple instances of your ActiveX control. It is not memory intensive, nor is it slow. It's biggest weakness is that it is hardcoded to intercept particular messages (in this case, WM_SIZE, to trap resize events) and will require some minor modification on your part to use.
These events are usually ignored or inconsistent amongst programs. For the users benefit, highlighting the current textbox, or tab control will aid in their navigation of your forms. But how to keep all these events consistent? Here is the answer. (Well our answer anyhow... until full-inheritance in VB 5.0)
Visual Basic 5.0 allows you to use UserControls to create ActiveX controls in your projects. The following code snippet does two things: It gets a reference to the form in which a UserControl is placed, and it gets a reference to that control on the form. by David Mendlen
Suppose you have a listbox with some elements and want to drag&drop a selected one into a textbox. http://137.56.41.168:2080/VisualBasicSource/vbdraganddrop.txt
handy code for clearing all text box controls at run-time so you don't have to bother doing it at design time. http://137.56.41.168:2080/VisualBasicSource/vbworkingwithtextbox.txt
Use of 3 types of common dialog boxes:1: choose printer, 2: choose font, 3: choose color. http://137.56.41.168:2080/VisualBasicSource/vb4usecommondialog.txt
This is a Flat ImageCombo, I made It, because I was bored with the "normal" Combo from VB. And I could'n detect when user selectted an Item on the list. So I decided make one better. It's very userful ( I hope ) please Check It out and vote. Comments are also very apreciated.
ActiveX control like on WinXP open dialog.
4 cool user controls. !!! FOR ADVANCED USERS ONLY !!! NO SAMPLE PROJECT INCLUDED !!! Experiment with Properties Browser and methods and events. Look at the great events of GGCommand (I have not seen a Flat Command Button like mine on PSC yet :)) - MouseEnter and MouseExit. Supports transparent images and Caption and Picture position adjustments. Usage of GGMover: In MouseDown events of some object (Picture1 for example - set form and picture1 .ScaleMode to 3-Pixel): GGMover1.CaptureObject X,Y In MouseMove event: GGMover1.MoveObject Picture1,X,Y,True,True,0,300,0,500 In MouseUp event: GGMover1.ReleaseTargetObject If you have any problems with these user controls just write me an email to gogox@yahoo com or [email protected] This is my first submission to PSC.Enjoy
The award-winning TreeView Class wrapper has been optimised using APIs plus many new features added like simple Drag'n'Drop with auto-expand & auto-scroll, Multi-Node selection, Overlay Icons, load/save to binary/Xml file, and many more... 6 Tutorial applications are included to demonstrate sets of features to help make it easier to understand and implement into your own applications. The Wrapper contains several files that can either be embedded directly in an appplication or compiled into an in-process DLL (by Default). If you're considering working with the TreeView control, then this will be an invaluable tool for you! *** Latest version can be found here:- http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=37553&lngWId=1 ***
Guys as i promised, here am back with the resizeable and moveable version of Translucency OCX... a Novel method to implement translucency to your VB Forms, with just a single line of code !!!!! You expect it to be more easy ????
The FormattedLabel acts as a standart label control, but by placing commands within the caption, you can display different font effects. Different commands allow you to change bold, italic, underline, strikethru and color styles and insert line breaks. The control also features AutoSize and WordWrap. But i can't do it with transparent background. Buuuu. :o) Hi folks. I change tags to html like but without color tag. In declaration part of UserControl there is constants like CONST cBoldStart = "". You can change tags there but they must by among . Thanks to all for your reqest and tips. p.s. I hope than my programing is better then my english. Sorry :o))))
Best Way To Create 10000 Menues At Once! And Display Them As Menu Bar or Floating PopUp!!! BETA TESTING!
This is a rich-text-box with a built-in line-number panel on the left. Typical use would be for a script editor language IDE. I Couldn't find a decent one on here that did this, so I spent some time doing it myself, and passing it on for you to use (and improve on, of course). It is a pretty basic control, but I did make into a control so you can just pop it onto a form and go (of course, source code for control is included). You can control the Line Number panel width, backcolor and forecolor, along with all textbox stuff (uses RTF in case you want to use my syntax code colorizer submission). The Line number panel automatically adjusts its font to be the same name/size/etc., as the text box so that they line up properly. Hope you find it helpful - if so, votes are always appreciated (kind of makes me feel like it was time well spent).
Selects a color
Move forms together as if they were docked. No Timer needed! I had to separate forms used as a kind of toolbox. My idea was, that it would be nice if I could move these two together if they were both active. VB doesn't tell me when my form is moved. But then I realised that I read s.th. about moving forms without a titlebar. Using this trick my code will perform the following action: 1. The form detects a mousedown event 2. The mouse is released and the form moved by FormDrag 3. The other form is notified of the movement 4. The other form will follow the first Don't forget to vote if you like it ;o)
Yet another update. I have fixed the scrollbar display under WindowsXP. Here's an update to my Combobox control. I fixed the App activation issue, and added support for MDI & MDI child forms. Thanks for the support! Due to the lack in VB for a Multi-Column Combobox and the licensing issues with the Forms2.0 control, I've created my own. This control uses only the standard VB controls so there are no extra dependencies like many of the other Multi-Column comboboxes out there. It's simple to use and setup. It supports column widths, a finditem method that searches items by column, and hot-tracking. It also has the common ComboEdit & ComboList style. You can adjust the drop-down list height and width. The list will also display outside of the form border. The code for the control is not commented very well, but the demo does a pretty good job explaining how to use it. Many of the API & Subclassing base techniques used in the control are from vbAccelerator, & mvps.org/vbnet. Also, if you know of any ways to improve it, please let me know. I've tested MANY other Multi-Column comboboxes (free and the not so free) and I feel this control is a very good cross between graphical representation and useability providing the programer an easy interface and the end user a control that behaves like you would expect. If you feel that this control is worth the time & effort put into it, then please vote for it! If not, any suggestions on how I can make it better are greatly appreciated. Thanks
REAL C++ CONTROLS IN YOUR APP!!! Do you know the code "Real C++ Buttons" by Randy Mcdowell? It sends a message to a VB Button to make it a "C++ Button". But if you look at this button with Spy++ you will see that it is still a "ThunderCommandButton", the VB Button. My code lets you use EVERY C++ control in your app!!! And these controls are REAL C++ controls!!! Think of the fantastic controls you can have: e.g. the cool hotkey control. Or what about a "real" RICHEDIT control? The only limitation is your fantasy! Control events are also supported. Well commented, and easy to use even if you don't understand everything that happens. The second version of this code, now with tutorial and some new stuff. Have fun with this code, use it in your app, and if you like it VOTE FOR IT!!!
Updated 11-Aug-2001. Enhanced menus builds on Steve's excellent VbAccelerator popup menus which uses standard Vb menus, not complicated menus created at run-time. Enhancements: Transparent or opaque separator captions with icons. Wallpaper highlights. Variable width (autosizes to font) vertical bar created by writing direct to DC's. Left or right orientation. 90° or 270° text rotation. Standard, gradient, or wallpaper style. Individual captions, icons, and font properties. Translucency NOT WORKING CORRECTLY. CAN ANYONE HELP? Rename Alphablend.DL_ to Alphablend.DLL and copy to your windows system directory. See screenshot.