Results for "Author: slider"
This project was put together as a learning tool to better understand how to capture Windows Messages using subclassing within a OCX. Capuring Windows Messages in a executable is very straight forward - however within an OCX, it's a whole new dimension. This project demonstrates how to overcome the difficulties without using thrid-party products or external DLLs. Keep your eye on both the Immediate Window and the UserControl's ListBox in both Design-time and run-time whilst resizing, minimising, maximising, moving, clicking, etc to better understand how the UserControl and Windows Messages Work. I hope that you get the same benefit from using this code as I did coding it!
The wrapper is designed to take control of all associated containers/controls in three easy steps:- 1. Hook a TabStrip control; 2. assign controls to tabs; & 3. set how the controls will be managed - the wrapper will do the rest! Other features include container management, automatic positioning (center, top-left, bottom right, etc...) and auto-Fit. The wrapper makes use of object pointers (weak object references) to aviod circular references. All code is cleanly formatted and well commented. The included program demonstrates how easy the wrapper class is to use - Take note of the placement of the different types of associated controls and how the wrapper fixes up their containers, visibility and positioning on start-up. If you use the TabStrip control or have wanted to, then this is for you!
** Release 6 ** Added BackMode, BackColor, BackPicture, BackFileName, DisableMultiSelect, New Tutorial (Disable Multi-Node Select), updated Tutorial 1 (demonstrate new Back features) and added Animated TreeView Image Background (YES - A first! Pretty unique huh!). BackColor & BackPicture work independantly of the Nodes therefore Nodes maintain their original colors! No other VB code does this - enjoy! ** Release 5 - 26 New Features, 2 new Tutorials ** Now boasts 75 Properties & Methods (features), 7 tutorial/example applications and detailed Html help files and still growing! New features include:- **Disabled Nodes Interface** with full keyboard and mouse support (Unique!), HitTestEx (with comprehensive feedback), IsNodeTextUnique, IsPathExpanded, NodeAbsolutePosition, NodeAbsoluteIndex, NodeCoord, NodeCountChildren (recursively for all sub-branches), NodeFindEx1 (containing), NodeFindEx2 (advanced pattern-matching), NodeFindObjectInTag (advanced pattern-matching), NodePosition, NodeUniqueText, SubNodesSorted, and EditLabelMaxLength. The Disabled Nodes Interface allows individual nodes to be enabled/disabled (not selectable) and toggled with the ability to affect child nodes with a single command; disabled Fore/Back colours and Bold state are programmable (preserves the original Forecolor, Backcolor and bold status of each individual node) and fires a StateChange event when a node or a range of nodes are disabled/enabled. The treeview control by itself is a powerful control when used properly. This wrapper is designed to deliver the most common and also complicated features that's expected from the control but are not included or are very difficult to implement. [See the animated ScreenShots for examples of the new features] The included tutorials also demonstrate how to tie multiple ADO recordsets to a Treeview control with drag'n'drop automatic updates(move & copy nodes and branches), load-on-demand for instataneous display of large amounts of data; benchmarking; cursor management; TabStrip management; working with common dialogs through APIs; and much, much more...
Added BackMode, BackColor, BackPicture, BackFileName, DisableMultiSelect, New Tutorial (Disable Multi-Node Select), updated Tutorial 1 (demonstrate new Back features) and added Animated TreeView Image Background (YES - A first! Pretty unique huh!). BackColor & BackPicture work independantly of the Nodes therefore Nodes maintain their original colors! No other VB code does this - enjoy! Now 80+ Features!
This is a bug-fix update for the cTreeView DLL/Class Wrapper. Fixes disappearing disabled nodes, error cause if resetting Disabled Nodes when there are no Disabled Nodes, and NodeMove not honoring individual Node expand states. Thanks to Zhu JinYong and Denis Chollet for finding these bugs. *** NOTE: This is an update ONLY - not all files are included. Please ensure that you have downloaded v02.03.00 [http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=37553] before downloading the update. ***
Have you ever wanted to add Multi-Node Selection to your application? Many people here and in the newsgroups have wanted this feature. Here is a working prototype! Enjoy...
I get questioned alot about the TreeView control by PSC users - especially about Drag'n'Drop operation. Here is some sample code that directly answers how to do this proceedure including auto-expand of collapsed nodes plus Auto-Scroll during drag.
The purpose of this demonstration application is to illustrate advanced techniques in using forms within the application or in an process (not remote) DLL to encapsulate functionality without effecting usability. The key benefit of using an in-process DLL is in application distribution. If a change is made to only one part of the application contained in a DLL, then only the DLL needs to be distributed. Another benefit could include cross application useability. An example of where this might be useful is if we have an inventory application and we want to view the suppliers on the same screen with the stock item or view all stock items on the suppliers screen. A common viewport is used to display associated information. If we are looking at the supplier screen, other information can be displayed in the common view port and could include outstanding orders, reports, historical data, etc. Each screen of data would be stored in their own forms. The same information is displayed in both of the inventory application examples but requires no double coding as each form encapsulates the code for the interface and functionality/business-logic. For this to work, an interface class would be created and implemented into each form creating a common method of communicating. A Form can be both a parent and child. The viewport on each parent form would be enabled or disabled depending if it was the parent or child form. Vote for this project and Happy Coding...
Replicates MS Works 2000 horizontal and vertical menus. Displaying Disabled Items, Hover Items (Hot Tracking - v1.01), ToolTips (v1.02), Seperator Lines, etc all configurable. Demonstration application included to demonstrate all the features of the controls.
Replicates MS Works 2000 horizontal and vertical menus. Displaying Disabled Items, Hover Items (Hot Tracking - v1.01), ToolTips (v1.02), Graduated Selection/HiLite (v1.03), Seperator Lines, etc all configurable. Demonstration application included to demonstrate all the features of the controls. Please vote for this project & happy coding!
This class is great for use with contact database programs. It's designed to take an address from a multiline textbox and break out the details to individual fields (Street, city, state, zip, country); criteria validation function that check for missing field; auto capitalisation; and fill a passed combobox with all known countries. Also takes multiple fields and returns a formatted address. The test application also demonstrates (for beginners) how to create an Auto-complete a ComboBox; Quick ComboBox search using API; Simple field hilighting methods for TextBox and ComboBox; Avoid complex If/Then structures using bitwise operation and the IIF function. The code is commented and clean - well worth the look. Please vote if you like it...
This class is great for use with contact database programs. It's designed to take a Person's Full Name and break out the details to individual fields (Title, First, Middle, Last, Suffix); criteria validation function that check for missing field; auto capitalisation; and fill a passed combobox with all Titles (Mr. Miss, ...) or Suffixes (Jr., Sr, ...). Also takes multiple fields and returns a formatted Full Contact Name. The test application also demonstrates (for beginners) how to create an Auto-complete a ComboBox; Quick ComboBox search using API; Simple field hilighting methods for TextBox and ComboBox; Avoid complex If/Then structures using bitwise operation and the IIF function. The code is commented and clean - well worth the look. Please vote if you like it...
This article demonstrates how to exit an application cleanly with user prompting (if required) without using the END Statement.
Replicates MS Works 2000 horizontal and vertical menus. Displaying Disabled Items, Hover Items (Hot Tracking - v1.01), ToolTips (v1.02), Graduated Selection/HiLite (v1.03), Seperator Lines, etc all configurable. Demonstration application included to demonstrate all the features of the controls. Please vote for this project & happy coding!
The purpose of this demonstration application is to illustrate advanced techniques in using forms within the application or in an process (not remote) DLL to encapsulate functionality without effecting usability. The key benefit of using an in-process DLL is in application distribution. If a change is made to only one part of the application contained in a DLL, then only the DLL needs to be distributed. Another benefit could include cross application useability. An example of where this might be useful is if we have an inventory application and we want to view the suppliers on the same screen with the stock item or view all stock items on the suppliers screen. A common viewport is used to display associated information. If we are looking at the supplier screen, other information can be displayed in the common view port and could include outstanding orders, reports, historical data, etc. Each screen of data would be stored in their own forms. The same information is displayed in both of the inventory application examples but requires no double coding as each form encapsulates the code for the interface and functionality/business-logic. For this to work, an interface class would be created and implemented into each form creating a common method of communicating. A Form can be both a parent and child. The viewport on each parent form would be enabled or disabled depending if it was the parent or child form. Vote for this project and Happy Coding...
Replicates MS Works 2000 horizontal and vertical menus. Displaying Disabled Items, Hover Items (Hot Tracking - v1.01), ToolTips (v1.02), Seperator Lines, etc all configurable. Demonstration application included to demonstrate all the features of the controls.
This control was used in several commercial applications that I've written as an on-screen Help system. I've included the prototyping code (non-api) and the flicker free API version. I hope this helps someone ..... Happy Coding!
Have you ever wanted to add Multi-Node Selection to your application? Many people here and in the newsgroups have wanted this feature. Here is a working prototype! Enjoy...
** Release 3 ** New cTREEVIEW features: Flat border; IsChildNode; CopyNode with cancel option; Cut Icon state. ADO example supporting: Load on demand; Find First/ Next/ Previous; Label Edit; Drag'n'Drop; Node & TreeView context menus; node specific Open/Closed/Drag icons. ADO Example now supports: New Nodes/Records can be added; copy treeview node(s); Cut/Copy/Paste through right-click context menu; and functions are now benchmarked with results displayed. ** Release 2 ** cTREEVIEW class features: Scroll treeview Up/ Down/ PageUp/ PageDown/ Home/ End using code; Dragging with auto-scrolling (not supported by Microsoft in the TreeView control); NodeFirstViewable; & NodeLastViewable. ADO Example fixes: Find Next/Previous didn't work if branches already loaded. cTREEVIEW class fixes: correct node drag icon displayed. cTreeview features include: fast clear a treeview; extended Add/Rename/Delete nodes; copy & move nodes through code &/or Drag'n'Drop including parent nodes onto child nodes (not normally possible!); find node using text and (optionally) key properties; check if a node is a parent of another; checks if a node is a root node; a safe get parent node text; right-click context menu (before/after click event); collapse/expand all nodes; collape/expand all child nodes; enable/disable redraw. This example shows how to:- work with multiple tables of data and load data on demand. As a bonus, I've included cDB class that encapsulates working with an Access Database using ADO. All code is heavily commented. If there are any routines that you feel are missing or code/bug-fixes that you wish to contribute, then please let me know and I'll add them in. *** Latest version can be found here:- http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=37553&lngWId=1 ***
Included are 6 date routines: FindEOCM (Find last day of the month), FindEOPM (Find last day of previous month), WeekNumber (Date to week number), WeekNum2Date (Week number to date), GetMonthNames (uses Locale names - Short or long description), GetWeekDayNames (uses Locale names - Short or long description). Test program is also included.