Results for "Category: Custom Controls/ Forms/ Menus"
Select color value either in RGB, HEX or LONG. Very easy to include in your own project.
AutoSize purpose is to help programmers maintain their forms without too much fuz. FormSizer makes the application remember the size and state of a window from time to time the program is run. (Code free!!!) ControlSizer lets you set up rules for how your controls should resize when the window resizes. The control takes care of the rest. (Coding is limited to two lines of code per control you want to be adaptive)
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 is an extended timer OCX control permitting Intervals between 10 millisecs and 52 weeks. Although it has quite a few more properties it is still a direct replacement for the standard VB timer control. Check it out, download is only 5kB. Also, it's a good example for beginners who want to learn how to make OCXes.
A custom message box with 6 differents "skins" (GlassRed, GlassCandy, GlassOrange, Glassblue, GlassWhite, GlassYellow) use any (or none) icon/bmp for the messagebox..any size you wish, an offsetX and offsetY for exact placement of your messagebox picture, and the ability to play either exclamation, or warning sound, or a custom sound of your choice(or no sound at all) and best of all..it looks real nice)
Hide your porgams in the task manager, and from process lists. No one will ever know its there!
XP Menu is none visual component that changes the visual aspects of menus and toolbars to nearly the same look and feel of MS Office XP. No code required, you do not have to reconstruct menus or toolbars using components other than those shipped with Delphi. It's a 1.501 (Beta) version. ----------------------------------------------- ATTENTION : It's not my code. I find it on the web : http://www.shagrouni.com/english/software/xpmenu.html
Here is an example showing how to use the Component Template. You will find it under 'Component' on the Delphi menu. Component Templates are very handy, yet very simple to use.
::UPDATED:: With these procedures, you can make your Delphi forms translucent [see through] using some API that's in Win2k and Windows XP. If you like it, please vote. This is written in the newest Delphi version (6).
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.
To center all of your forms nicely on the screen, use this as the first line in the Form_Load event--resolution independent. 'note:call this function like this: Center_Form Me
Show how to make a text box not beep but do something else when I hit the Enter key. This code example makes nothing happen, for an extended period of time:
How do I get my application on top?To make your window truly topmost, use the SetWindowPos API call
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
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.
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.
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
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
The DegreesToXYsubroutine, calculates the X (horizontal) and Y (vertical) coordinates of any point, measured in degrees, on the circumference of a circle or ellipse.